wesQuest *Give_Item*
Another small update to the wesQuest.cpp
Syntax GIVE_ITEM [itemid] [charges] Code:
TRIGGER_TEXT:yes:{ Code:
else if (strstr(command,"GIVE_CASH") != NULL) { |
Should be a useful addition to the quest scripting system.
I noticed while testing that the GIVE_CASH command doesn't seem to work; is this a known problem? |
Wasn't there a command SPAWN_ITEM or something like that? I don't think it had charges, just wanted to mention it.
|
Quote:
Quote:
|
Merged it into Wesquests in ST. I'll check give_cash out...
|
I was playing with your 260.qst beggar Drawde.. 1st, there should be a space between GIVE_CASH and the value, sep isnt looking over the :
Next, the update packet is never sent to the client after the cash is added, so it's put into the character inventory, but the client is never told.. If you add a few plat then zone, you should see what i mean.. The packet needs to be sent to update the player cash amount on the client, then it will show up immediately.. Probably need to create a seperate function to do that, AddCash that will create and send the update packet structure all in one call... Not sure what Save() does, it just returns true... |
All times are GMT -4. The time now is 10:23 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.