Page 2 of 2

Re: Script for mana stones

Posted: Sun Nov 04, 2012 11:17 am
by Cindy
Ah thats simple enough :) thanks

Re: Script for mana stones

Posted: Mon Nov 05, 2012 9:04 am
by kilbord
i used script bought the items but didn't make mana stones how can i fix that?

Re: Script for mana stones

Posted: Mon Nov 05, 2012 9:16 am
by rock5
kilbord wrote:i used script bought the items but didn't make mana stones how can i fix that?
What script?

Re: Script for mana stones

Posted: Mon Nov 05, 2012 9:24 am
by kilbord

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
   <!-- #  1 --><waypoint x="-17157" z="-24295" y="737">   
   player:openStore(Faia Yarding)
   store:buyItem(Sublime Belt, 10)
   </waypoint>
   <!-- #  2 --><waypoint x="-17078" z="-24272" y="738">   </waypoint>
   <!-- #  3 --><waypoint x="-16994" z="-24257" y="736">      player:openStore(Iha Janna)
   store:buyItem(Random Fusion Stone, 10)
   </waypoint>
   <!-- #  5 --><waypoint x="-17101" z="-24262" y="737">
   </waypoint>
Fusion_Config(setting, value)
Fusion_MakeMaxManaStones(_maxManaStoneLevel)
</waypoints>
this script

Re: Script for mana stones

Posted: Mon Nov 05, 2012 9:34 am
by rock5
I don't understand how it could have bought the items, the npc names don't have quotes around them.

Also the commands actually require values as I discussed here
http://www.solarstrike.net/phpBB3/viewt ... 028#p39028

Re: Script for mana stones

Posted: Mon Nov 05, 2012 9:37 am
by kilbord

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
   <!-- #  1 --><waypoint x="-17157" z="-24295" y="737">   
   player:openStore("Faia Yarding")
   store:buyItem("Sublime Belt", 10)
   </waypoint>
   <!-- #  2 --><waypoint x="-17078" z="-24272" y="738">   </waypoint>
   <!-- #  3 --><waypoint x="-16994" z="-24257" y="736">      player:openStore("Iha Janna")
   store:buyItem("Random Fusion Stone", 10)
   </waypoint>
   <!-- #  5 --><waypoint x="-17101" z="-24262" y="737">
   </waypoint>
Fusion_Config("speed", 0.2)
Fusion_MakeMaxManaStones(6) -- Make tier 6 stones
</waypoints>
is what i already have done to them sorry forgot to mention that

Re: Script for mana stones

Posted: Mon Nov 05, 2012 9:41 am
by rock5
Ok then. All code needs to be between open and close tags, either onload tags or waypoint tags. Those last 2 commands are not between tags, ie. it should probably be

Code: Select all

   <!-- #  5 --><waypoint x="-17101" z="-24262" y="737">
Fusion_Config("speed", 0.2)
Fusion_MakeMaxManaStones(6) -- Make tier 6 stones
   </waypoint>

Re: Script for mana stones

Posted: Mon Nov 05, 2012 9:45 am
by kilbord
3:44pm - [string "..."]:2: attempt to call global 'Fusion_Config' (a
nil value) i get this error
and when i took that line out this error
3:44pm - [string "..."]:2: attempt to call global 'Fusion_MakeMaxManaStones' (a
nil value) any suggestion to fix that?

Re: Script for mana stones

Posted: Mon Nov 05, 2012 9:50 am
by rock5
I think that means you don't have my fusion userfunction installed. Do a search for it.

Re: Script for mana stones

Posted: Mon Nov 05, 2012 9:53 am
by kilbord
Ty it works :D if anybody wants to use it here is the code:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
   <!-- #  1 --><waypoint x="-17157" z="-24295" y="737">   
   player:openStore("Faia Yarding")
   store:buyItem("Sublime Belt", 10)
   </waypoint>
   <!-- #  2 --><waypoint x="-17078" z="-24272" y="738">   </waypoint>
   <!-- #  3 --><waypoint x="-16994" z="-24257" y="736">      player:openStore("Iha Janna")
   store:buyItem("Random Fusion Stone", 10)
   </waypoint>
   <!-- #  5 --><waypoint x="-17101" z="-24262" y="737">
Fusion_MakeMaxManaStones(6) -- Make tier 6 stones
   </waypoint>
</waypoints>