Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2003, 04:31 PM
mByte
Hill Giant
 
Join Date: Feb 2002
Posts: 206
Default wesQuest *Give_Item*

Another small update to the wesQuest.cpp

Syntax GIVE_ITEM [itemid] [charges]

Code:
	TRIGGER_TEXT:yes:{
		EMOTE:Gives %CHARNAME% a list to give to Mendela Charcoal.
		SAY:Here you go, hurry back ok?
		GIVE_ITEM 1001 0 
	}
Add this around line 411 atleast in my wesQuest.cpp thats the line
Code:
		else if (strstr(command,"GIVE_CASH") != NULL) {
			AddMoneyToPP(atoi(sep.arg[1]));
			ps = true;
		}
		/* Begin GIVE_ITEM */
		else if (strstr(command,"GIVE_ITEM") != NULL) {
			int16 ItemID = atoi(sep.arg[1]);
			sint8 ItemCharges = atoi(sep.arg[2]);
			this->SummonItem(ItemID, ItemCharges);
			ps = true;
		}
		/* End GIVE_ITEM */
		else if (strstr(command,"CAST_SPELL") != NULL) {
			other->CastSpell(atoi(sep.arg[1]),this->GetID());
			ps = true;
		}
__________________
mByte
Reply With Quote
  #2  
Old 01-21-2003, 06:42 AM
Drawde
Dragon
 
Join Date: Jan 2002
Posts: 521
Default

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?
Reply With Quote
  #3  
Old 01-21-2003, 11:46 AM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

Wasn't there a command SPAWN_ITEM or something like that? I don't think it had charges, just wanted to mention it.
__________________
Please read the forum rules and look at reacent messages before posting.
Reply With Quote
  #4  
Old 01-21-2003, 12:12 PM
mByte
Hill Giant
 
Join Date: Feb 2002
Posts: 206
Default

Quote:
Wasn't there a command SPAWN_ITEM or something like that? I don't think it had charges, just wanted to mention it.
*Edit* Yea, that was there forgot I modified it to spawn an item on the ground rather then your cursor. I just never tested it yet to post it.

Quote:
I noticed while testing that the GIVE_CASH command doesn't seem to work; is this a known problem?
I tried it and it didnt work correctly either but I can take a look at it after i populate my target zones today.
__________________
mByte
Reply With Quote
  #5  
Old 01-21-2003, 12:33 PM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Merged it into Wesquests in ST. I'll check give_cash out...
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #6  
Old 01-21-2003, 04:21 PM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

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...
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:46 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3