Spawn and Save NPC positions

telles0808

New member
Messages
27
Points
0
Hello,

I'm new here on Hercules, so, I hope to be welcome =]

Last day I was playing with Hercules and trying to make my own NPCs and quests. Hopeful it was easy to write the NPC script, but not so easy to position the npc on the map.

Maybe it was my lack of experience, or, simple unaccustomed with the interface between client and server scripts.

But, was remembering about the first WOW private servers and how the GMs are able to place and script NPCs in game.

Well, maybe the first part of it could be added to the Hercules, so, you could be able to place a NPC in real time in front of you by giving the same syntax as the script do, them, another command to save it inside a NPC script file.

Should be nice, btw, alt+tab and script, alt+tab and reload scripts, should work good enough too.

That's a simple suggestion and maybe not the best.

If you catches the idea and know how to improve it, feel free to contribute.

 
Last edited by a moderator:
It's doable, but using the client as a text editor would be awful... If you're having trouble to position a npc in the map just go to that place and type /where it'll give you your coordinates in-game. I'm not sure if you're aware of but there's an atcommand called @reloadscript.

 
you can ask in the plugin/source mod request and someone can make a combination of getmapxy and writing the npc header in a .txt file, but I personally don't think that it is necessary to be in the main branch
default_tongue.png


@kidding

- script at_getnpc -1,{
OnInit:
bindatcmd("getnpc",strnpcinfo(0)+"::OnAtcommand",60,99);
end;
OnAtcommand:
getmapxy .@map$,.@x,.@y,0;
dispbottom "-------------------------";
dispbottom "[Posição]";
dispbottom ""+.@map$+","+.@x+","+.@y+"";
dispbottom "-------------------------";
dispbottom "[Olhar do NPC]";
dispbottom "1.0.7";
dispbottom "2.X.6";
dispbottom "3.4.5";
dispbottom "-------------------------";
end;
}
 
Last edited by a moderator:
you can ask in the plugin/source mod request and someone can make a combination of getmapxy and writing the npc header in a .txt file, but I personally don't think that it is necessary to be in the main branch
default_tongue.png


@kidding

- script at_getnpc -1,{
OnInit:
bindatcmd("getnpc",strnpcinfo(0)+"::OnAtcommand",60,99);
end;
OnAtcommand:
getmapxy .@map$,.@x,.@y,0;
dispbottom "-------------------------";
dispbottom "[Posição]";
dispbottom ""+.@map$+","+.@x+","+.@y+"";
dispbottom "-------------------------";
dispbottom "[Olhar do NPC]";
dispbottom "1.0.7";
dispbottom "2.X.6";
dispbottom "3.4.5";
dispbottom "-------------------------";
end;
}
Amazing script! I'll try it today =]

 
Back
Top