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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-11-2004, 12:47 PM
cofruben
Old-EQEmu Developer
 
Join Date: Oct 2002
Location: Spain
Posts: 323
Default New fuction,quest::setldonpoint

Hello,I have created this new function who sets ldon points.Format is: quest::setldonpoint(numberofpoints,ldonthemenumber );.For example quest::setldonpoint(5,2);.I hope it helps!I will accept any suggestions .
This in parser.cpp,between any else-if commands,line about 809:

Code:
		    else if (!strcmp(strlwr(command),"setldonpoint")) {
				if (mob && mob->IsClient())
					mob->CastToClient()->UpdateLDoNPoints(atoi(arglist[0]),atoi(arglist[1]));
			}
This in embparser.cpp between myra and scorpius2k comments:
Code:
"sub setldonpoint{push(@cmd_queue,{func=>'setldonpoint',args=>join(',',@_)});}"
You have done!.
Reply With Quote
  #2  
Old 04-11-2004, 01:07 PM
Dave987
Discordant
 
Join Date: Jun 2003
Location: England
Posts: 267
Default

Woot ty
I see alot of uses for this
__________________
;o)
Reply With Quote
  #3  
Old 04-13-2004, 10:02 AM
m0oni9
Hill Giant
 
Join Date: Dec 2003
Posts: 166
Default

Just a small note.. It looks like you are calling this:
Code:
mob->CastToClient()->UpdateLDoNPoints(atoi(arglist[0]),atoi(arglist[1]));
without checking that arglist[1] is non-null.
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 01:34 PM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3