EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Quests (https://www.eqemulator.org/forums/forumdisplay.php?f=624)
-   -   New fuction,quest::setldonpoint (https://www.eqemulator.org/forums/showthread.php?t=13028)

cofruben 04-11-2004 12:47 PM

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!.

Dave987 04-11-2004 01:07 PM

Woot ty
I see alot of uses for this :)

m0oni9 04-13-2004 10:02 AM

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.


All times are GMT -4. The time now is 07:23 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.