Rayan Posted November 15, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 188 Reputation: 16 Joined: 06/12/12 Last Seen: September 1, 2016 Share Posted November 15, 2012 Hi, Its a request, can any one make me a script which can walk in prontera and randomly speak?? i m using eathena r15200 . client version 2010 its a request please help!! Quote Link to comment Share on other sites More sharing options...
Emistry Posted November 15, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Yesterday at 05:32 PM Share Posted November 15, 2012 trunk/doc/sample/npc_test_npctimer.txt Quote Link to comment Share on other sites More sharing options...
Joseph Posted November 15, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 341 Reputation: 43 Joined: 01/10/12 Last Seen: June 29, 2020 Share Posted November 15, 2012 http://upaste.me/raw/fd8115818eaf41fa Quote Link to comment Share on other sites More sharing options...
1 AnnieRuru Posted November 15, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted November 15, 2012 @Joseph script is closest, but not optimized enough prontera,156,177,5 script kdjfhkshf2 100,{ end; OnInit: .@interval = 5; .@step = 5; while (1) { sleep .@interval * 1000; getmapxy .@map$, .@x, .@y, 1; while ( checkcell( .@map$, .@npc_x = .@x + rand( -.@step, .@step ), .@npc_y = .@y + rand( -.@step, .@step ), cell_chknopass ) ); npcwalkto .@npc_x, .@npc_y; npctalk callfunc( "F_RandMes", 2, "I'm talking.", // 1 "Hello!" // 2 ); } end; // doesn't read } F_RandMes is 1 of the global function inside our svn its much cleaner than setting an array with getarraysize also much cleaner than switch( rand(x) ) { case 1: ... break; case2: .... break; } our crappy script engine parse switch, case and break very ugly F_RandMes is also consider 1 of the unique function only to *athena script language 1 Quote Link to comment Share on other sites More sharing options...
Joseph Posted November 15, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 341 Reputation: 43 Joined: 01/10/12 Last Seen: June 29, 2020 Share Posted November 15, 2012 Hah. Thanks for pointing out the existence of those functions. I agree some of the script commands are ugly parsed, but the thing is you still have to use them (it's all over the trunk/npc folder). Quote Link to comment Share on other sites More sharing options...
Rayan Posted November 16, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 188 Reputation: 16 Joined: 06/12/12 Last Seen: September 1, 2016 Author Share Posted November 16, 2012 Thank you very much emi , joseph and annie i have tried them but they are not walking at all....:/ Quote Link to comment Share on other sites More sharing options...
Ryokem Posted November 16, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 205 Reputation: 19 Joined: 10/12/12 Last Seen: November 7, 2013 Share Posted November 16, 2012 also much cleaner than switch( rand(x) ) { case 1: ... break; case2: .... break; }our crappy script engine parse switch, case and break very ugly Not really. It's the exact copy of a switch in IPLs. it's perfectly functional and way better than a gettarraysize if not in some dynamic cases. And since long ago, npcwalkto was a bit broken, better use unitwalk tho. Quote Link to comment Share on other sites More sharing options...
Joseph Posted November 16, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 341 Reputation: 43 Joined: 01/10/12 Last Seen: June 29, 2020 Share Posted November 16, 2012 Thank you very much emi , joseph and annie i have tried them but they are not walking at all....:/ Check header. Quote Link to comment Share on other sites More sharing options...
Rayan Posted November 17, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 188 Reputation: 16 Joined: 06/12/12 Last Seen: September 1, 2016 Author Share Posted November 17, 2012 k lemme try.. nah...not working at all even i tried to replace the walk command.. Quote Link to comment Share on other sites More sharing options...
Emistry Posted November 17, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Yesterday at 05:32 PM Share Posted November 17, 2012 try this http://pastebin.com/raw.php?i=vMaS8DaA Quote Link to comment Share on other sites More sharing options...
Rayan Posted November 17, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 188 Reputation: 16 Joined: 06/12/12 Last Seen: September 1, 2016 Author Share Posted November 17, 2012 Emi u rock, that script works fine and is totally bug free!!, ThNX ALOT Quote Link to comment Share on other sites More sharing options...
maynard Posted November 18, 2012 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 159 Reputation: 1 Joined: 12/21/11 Last Seen: April 20, 2014 Share Posted November 18, 2012 @emistry sir can u edit the script to talk consecutive, I mean not random. Quote Link to comment Share on other sites More sharing options...
Emistry Posted November 18, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Yesterday at 05:32 PM Share Posted November 18, 2012 @maynard http://pastebin.com/raw.php?i=uPKgZpAX 1 Quote Link to comment Share on other sites More sharing options...
-1 bayan012 Posted March 28, 2018 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 4 Reputation: 0 Joined: 05/16/15 Last Seen: June 12, 2018 Share Posted March 28, 2018 On 11/17/2012 at 8:07 PM, Emistry said: try this http://pastebin.com/raw.php?i=vMaS8DaA Hide contents Hi @emi do you have script of random walk then their is a time that it will go to one location? like every 20mins it will go to a specific location Thank You Quote Link to comment Share on other sites More sharing options...
Question
Rayan
Hi,
Its a request, can any one make me a script which can walk in prontera and randomly speak??
i m using eathena r15200 .
client version 2010
its a request please help!!
Link to comment
Share on other sites
13 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.