• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

NPC's moving you to other maps?

Retired Old Man
Loyal Member
Joined
Jun 9, 2008
Messages
761
Reaction score
706
Simply put just make custom conf to define map number/position and then use gObjTeleport in NPC.Talk function.

NPC.Talk
Code:
int CustomNpc = GetPrivateProfileInt("GameServerInfo","TeleportNPCNumber",0,"..\\Data\\TeleportNPC.dat");
int CustomMap = GetPrivateProfileInt("GameServerInfo","TeleportNPCMapNumber",0,"..\\Data\\TeleportNPC.dat");
int CustomMapPosX = GetPrivateProfileInt("GameServerInfo","TeleportNPCMapPosX",0,"..\\Data\\TeleportNPC.dat");
int CustomMapPosY = GetPrivateProfileInt("GameServerInfo","TeleportNPCMapPosY",0,"..\\Data\\TeleportNPC.dat");

if(gObj[Monster].Class == CustomNpc)
{
     gObjTeleport(aIndex,CustomMap,CustomPosX,CustomPosY)
}

then build more stuff around it if you feel like it, for example price requirements etc..
 
(づ。◕‿‿◕。)
Loyal Member
Joined
Jun 23, 2014
Messages
1,853
Reaction score
423
its not that hard its already implemented on tt files, and i did something similar to what shatter says on some s3 files some time ago and it works.
 
Junior Spellweaver
Joined
Jul 11, 2006
Messages
188
Reaction score
184
I'm planning on porting my server engine that has scripting embedded, to newer GS versions (only 97d supported right now)...

that would be as simple as creating 1 script file and writing this inside the file:


People made full guild/pvp events with the engine... this video is part1 of several videos of an event that sorts players and select 2 random player each time to do a pvp battle, the loser is teleported off the event map, the winner goes to a waiting room to wait for the other players battles. This repeats until there's only 1 left.


I wonder why people haven't made this (script) on their "emus" yet
 
Last edited:
Back
Top