JHONDOMINIC Posted January 30 Share Posted January 30 I try to random spawn monster by random mob_id store [email protected] and then want to change Test npc to prentera,155,155,4 script Test [email protected],{ Above just for my question explain and want to know have any way to change npc to monster by mob_id. Sorry for my English. Quote Link to comment Share on other sites More sharing options...
0 Rynbef Posted January 31 Share Posted January 31 (edited) @JHONDOMINICU can trigger a label at the specified npc and use setnpcdisplay(); like @cook1esaid. Like the disguise event does. setnpcdisplay "Test",1002; Rynbef~ Edited January 31 by Rynbef 1 Quote Link to comment Share on other sites More sharing options...
0 JHONDOMINIC Posted January 30 Author Share Posted January 30 Example. Script random to spawn Poring and then Test npc will change to Poring. Quote Link to comment Share on other sites More sharing options...
0 ryukazuna Posted January 30 Share Posted January 30 50 minutes ago, JHONDOMINIC said: I try to random spawn monster by random mob_id store [email protected] and then want to change Test npc to prentera,155,155,4 script Test [email protected],{ Above just for my question explain and want to know have any way to change npc to monster by mob_id. Sorry for my English. this is kinda hilarious, you just need to put the monster id in the view data. as far of my understanding, this won't work, because we store the variable data inside the NPC script it self, which is writed after the open bracket and view data isn't part of the NPC Script. unless you create NPC to store the global variable data ($variable) and using it the way you do. but, i never tested it my self. Ex: - script variable#test -1,{ OnInit: $mobspawn = 1002; end; } prontera,155,155,3 script Test $mobspawn,{ mes "Hello World!"; close; } maybe this won't work either xD but hope you get my point. CMIIW. Quote Link to comment Share on other sites More sharing options...
0 cook1e Posted January 30 Share Posted January 30 https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L6903 Quote Link to comment Share on other sites More sharing options...
0 JHONDOMINIC Posted February 3 Author Share Posted February 3 On 1/31/2022 at 1:33 PM, Rynbef said: @JHONDOMINICU can trigger a label at the specified npc and use setnpcdisplay(); like @cook1esaid. Like the disguise event does. setnpcdisplay "Test",1002; Rynbef~ Thank you so much and everybody sorry for late answer. Quote Link to comment Share on other sites More sharing options...
I try to random spawn monster by random mob_id store [email protected] and then want to change Test npc to
prentera,155,155,4 script Test [email protected],{
Above just for my question explain and want to know have any way to change npc to monster by mob_id.
Sorry for my English.
Link to comment
Share on other sites