EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=621)
-   -   Movepc function for quests snippet (https://www.eqemulator.org/forums/showthread.php?t=7692)

killspree 06-04-2003 08:29 AM

Movepc function for quests snippet
 
zone/parser.cpp add the following at ~line 833 add:

Code:

                        else if (strstr(strlwr(arglist[0]),"movepc")) {
                                if (mob->IsClient())
                                        mob->CastToClient()->MovePC((atoi(arglist[1])),(atoi(arglist[2])),(atoi(arglist[3])),(atoi(arglist[4])));
                        }

At ~line 1056 change:

Code:

#ifdef GUILDWARS
        strn0cpy(com_list, "if 0|break 1|while 0|spawn 6|dbspawnadd 2|echo 1|summonitem 1|castspell 2|say 1|emote 1|shout 1|depop 1|cumflag 1|flagclient 2|exp 1|level 1|safemove 1|rain 1|snow 1|givecash 4|pvp 1|doanim 1|addskill 2|flagcheck 1|me 1|write 2|settarget 2|follow 1|sfollow 0|save 0|setallskill 1|attack 1|cityfaction 1|report 0|", sizeof(com_list));
#else
        strn0cpy(com_list, "if 0|break 1|while 0|spawn 6|dbspawnadd 2|echo 1|summonitem 1|castspell 2|say 1|emote 1|shout 1|depop 1|cumflag 1|flagclient 2|exp 1|level 1|safemove 1|rain 1|snow 1|givecash 4|pvp 1|doanim 1|addskill 2|flagcheck 1|me 1|write 2|settarget 2|follow 1|sfollow 0|save 0|setallskill 1|attack 1|", sizeof(com_list));
#endif

To:
Code:

#ifdef GUILDWARS
        strn0cpy(com_list, "if 0|break 1|while 0|spawn 6|dbspawnadd 2|echo 1|summonitem 1|castspell 2|say 1|emote 1|shout 1|depop 1|cumflag 1|flagclient 2|exp 1|level 1|safemove 1|rain 1|snow 1|givecash 4|pvp 1|doanim 1|addskill 2|flagcheck 1|me 1|write 2|settarget 2|follow 1|sfollow 0|save 0|setallskill 1|attack 1|cityfaction 1|report 0|movepc 4|", sizeof(com_list));
#else
        strn0cpy(com_list, "if 0|break 1|while 0|spawn 6|dbspawnadd 2|echo 1|summonitem 1|castspell 2|say 1|emote 1|shout 1|depop 1|cumflag 1|flagclient 2|exp 1|level 1|safemove 1|rain 1|snow 1|givecash 4|pvp 1|doanim 1|addskill 2|flagcheck 1|me 1|write 2|settarget 2|follow 1|sfollow 0|save 0|setallskill 1|attack 1|movepc 4|", sizeof(com_list));
#endif

zone/basic_functions.h add the following at ~line 170:
Code:

if (strstr(string,"movepc"))        {  return 4;    }
I'll post diffs from now on, just wanted to post this snippet up for now.

Trumpcard 06-06-2003 03:11 AM

Merged this KS, can you verify it in CVS?

Thanks!

killspree 06-12-2003 09:14 PM

Bah, been really busy lately and haven't had a chance to surf much - just took a look at CVS, it's in, thanks TC. :)


All times are GMT -4. The time now is 03:10 PM.

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