tr0n Posted March 24, 2012 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 562 Reputation: 153 Joined: 02/21/12 Last Seen: February 27, 2024 Share Posted March 24, 2012 (edited) You don't want to wait because of @reloadscript only for reloading OnInit ?, you used @loadnpc and OnInit doesn't get triggered ?, You don't want to respawn your mvps with @reloadscript because you're player will kill them again ? and you players don't like delay cause of @reloadscript ? With this command it's possible to trigger OnInit for you without all of these problems. Just patch your source with my diff file. If you insert a script with @loadnpc just load the OnInit label with @oninit Syntax: @oninit <npcname> oninit.diff Edited March 24, 2012 by tr0n 7 Quote Link to comment Share on other sites More sharing options...
LCDTheOG Posted March 24, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 223 Reputation: 36 Joined: 12/13/11 Last Seen: February 1 Share Posted March 24, 2012 nice , i +1 this. Quote Link to comment Share on other sites More sharing options...
KaitoKid Posted March 24, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 268 Reputation: 27 Joined: 12/06/11 Last Seen: March 13, 2015 Share Posted March 24, 2012 (edited) Thanks! The command works perfectly! Edited March 24, 2012 by Kaito_Kid Quote Link to comment Share on other sites More sharing options...
JayPee Posted March 24, 2012 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 633 Reputation: 78 Joined: 11/14/11 Last Seen: September 20, 2017 Share Posted March 24, 2012 nice one. Tron is the man! Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 24, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 8 hours ago Share Posted March 24, 2012 erm..not sure will you accpet this suggestion of mine... make it able to select to trigger all npc OnInit or 1 NPC... because..if just based on 1 NPC..there is alternate way to trigger it... for example : OnWhisperGlobal: OnInit: <script> end; using a OnWhisperGlobal is possible to trigger the OnInit Label as well since it is only for 1 NPC. and i am sure you are only using this to load a NPC with OnInit label without restart server Quote Link to comment Share on other sites More sharing options...
tr0n Posted March 24, 2012 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 562 Reputation: 153 Joined: 02/21/12 Last Seen: February 27, 2024 Author Share Posted March 24, 2012 (edited) @Emistry for this the command @trigger already exists in Source releases. Mine is for: If you @loadnpc something on your server you don't want to reloadscript cause the player don't like it and the mvps respawn. With my command you can bypass it with using @oninit npcname to trigger the oninit label. Edited March 24, 2012 by tr0n Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 24, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 8 hours ago Share Posted March 24, 2012 Owh...haha i didnt know about that... maybe it is because of the rAFileBot spammed the forum last time... i just skipped all the Bot's Topic..>.< because too many topic the bot have created... haha thx for point it to me Quote Link to comment Share on other sites More sharing options...
Drakkus Posted March 24, 2012 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 386 Reputation: 15 Joined: 11/17/11 Last Seen: September 13, 2024 Share Posted March 24, 2012 +1 tr0n Quote Link to comment Share on other sites More sharing options...
Syouji Posted March 26, 2012 Group: Members Topic Count: 70 Topics Per Day: 0.01 Content Count: 1245 Reputation: 395 Joined: 11/19/11 Last Seen: January 15, 2020 Share Posted March 26, 2012 Nice job Tr0n. This will save quite a lot of time doing NPC loads/updates. Quote Link to comment Share on other sites More sharing options...
uDe Posted April 8, 2012 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 400 Reputation: 5 Joined: 12/05/11 Last Seen: September 27, 2015 Share Posted April 8, 2012 (edited) Syntax: @oninit <npcname> Do this code will trigger the whole NPC on the script? I mean for duplicated NPC's.. Edited April 8, 2012 by uDe Quote Link to comment Share on other sites More sharing options...
KaitoKid Posted April 8, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 268 Reputation: 27 Joined: 12/06/11 Last Seen: March 13, 2015 Share Posted April 8, 2012 Syntax: @oninit <npcname> Do this code will trigger the whole NPC on the script? I mean for duplicated NPC's.. If it is a duplicate NPC then yes Quote Link to comment Share on other sites More sharing options...
uDe Posted April 8, 2012 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 400 Reputation: 5 Joined: 12/05/11 Last Seen: September 27, 2015 Share Posted April 8, 2012 If it is a duplicate NPC then yes The command is @oninit <npcname>. So, I just have to trigger the main npc name right? It confuse me because of <npcname>. Not <npcfilename>.. Sorry, it's just Newb questions.. Quote Link to comment Share on other sites More sharing options...
KaitoKid Posted April 8, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 268 Reputation: 27 Joined: 12/06/11 Last Seen: March 13, 2015 Share Posted April 8, 2012 The command is @oninit <npcname>. So, I just have to trigger the main npc name right? It confuse me because of <npcname>. Not <npcfilename>.. Sorry, it's just Newb questions.. Yes Quote Link to comment Share on other sites More sharing options...
uDe Posted April 8, 2012 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 400 Reputation: 5 Joined: 12/05/11 Last Seen: September 27, 2015 Share Posted April 8, 2012 Thank you so much! Great release anyway.. Quote Link to comment Share on other sites More sharing options...
tr0n Posted April 8, 2012 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 562 Reputation: 153 Joined: 02/21/12 Last Seen: February 27, 2024 Author Share Posted April 8, 2012 Thank you so much! Great release anyway.. thank you Quote Link to comment Share on other sites More sharing options...
solid2005 Posted April 8, 2012 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 147 Reputation: 15 Joined: 01/06/12 Last Seen: Tuesday at 12:33 PM Share Posted April 8, 2012 why you not mix up on rathena trunk version? Quote Link to comment Share on other sites More sharing options...
tr0n Posted June 13, 2012 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 562 Reputation: 153 Joined: 02/21/12 Last Seen: February 27, 2024 Author Share Posted June 13, 2012 Not necessary anymore since @loadnpc triggers the oninit label. But still usable for eAthena. Quote Link to comment Share on other sites More sharing options...
Joseph Posted June 13, 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 June 13, 2012 Great work! Quote Link to comment Share on other sites More sharing options...
greenieken Posted June 13, 2012 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 154 Reputation: 1 Joined: 05/02/12 Last Seen: June 5, 2020 Share Posted June 13, 2012 cool Quote Link to comment Share on other sites More sharing options...
java Posted June 14, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 252 Reputation: 21 Joined: 12/22/11 Last Seen: 29 minutes ago Share Posted June 14, 2012 wow amazing .. it's very usefull +1 Quote Link to comment Share on other sites More sharing options...
Santino Posted August 14, 2012 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 198 Reputation: 47 Joined: 08/01/12 Last Seen: July 1, 2015 Share Posted August 14, 2012 nice job man! btw, how about if i want to cancel the oninit triggered? how to do that? Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 14, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 8 hours ago Share Posted August 14, 2012 revert the changes then..... Quote Link to comment Share on other sites More sharing options...
Santino Posted August 14, 2012 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 198 Reputation: 47 Joined: 08/01/12 Last Seen: July 1, 2015 Share Posted August 14, 2012 what should i use? i tried @unloadnpc "script's npc name" then the npc was disabled, but not the triggered script. e.g. cell_walkable,0 is still on. Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 14, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 8 hours ago Share Posted August 14, 2012 revert this changeset.. if you dont want @loadnpc to load OnInit http://trac.rathena.org/changeset/16130/rathena @unloadnpc wont help you unload the whole npc folder... it only unload the npc that you specified. the mapfalg / setcell ..all you have to create another script to unload it or dont load it during next reboot Quote Link to comment Share on other sites More sharing options...
mrlongshen Posted January 3, 2013 Group: Members Topic Count: 98 Topics Per Day: 0.02 Content Count: 1302 Reputation: 79 Joined: 12/04/12 Last Seen: September 26, 2019 Share Posted January 3, 2013 can i use this diff in 3ecam ? Quote Link to comment Share on other sites More sharing options...
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.