telles0808 2 Posted January 17, 2014 (edited) 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. Edited January 17, 2014 by telles0808 Quote Share this post Link to post Share on other sites
pan 87 Posted January 17, 2014 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. 1 telles0808 reacted to this Quote Share this post Link to post Share on other sites
evilpuncker 503 Posted January 17, 2014 (edited) 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 @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; } Edited January 17, 2014 by evilpuncker 1 telles0808 reacted to this Quote Share this post Link to post Share on other sites
telles0808 2 Posted January 17, 2014 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 @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 =] Quote Share this post Link to post Share on other sites