Jhosef Posted August 20, 2012 Posted August 20, 2012 Help us in this script http://rathena.org/board/topic/60571-a-working-mvp-room-rental-system/ i try the Private mvp but when i try it no chatbox and no menus please help to fix it Quote
Santino Posted August 21, 2012 Posted August 21, 2012 u load it using @loadnpc or scripts_custom.conf and restart? cuz it's working fine with me. o.O Quote
Jhosef Posted August 21, 2012 Author Posted August 21, 2012 yes i already restart it and use a load npc but its not working no chat box and no menu its already working on my offline but in my official server is not working bytheway my host is asurahosting Quote
Santino Posted August 21, 2012 Posted August 21, 2012 can't test at online server though , sorry. enable it at npc/scripts_custom.conf ? Quote
Nipsino Posted August 21, 2012 Posted August 21, 2012 Could you post a screenie? That's strange how it's not showing a chatbox/menu. Quote
Santino Posted August 21, 2012 Posted August 21, 2012 (edited) u need to load it thru script_custom.conf or @reloadscript, or just restart the server, you can do @oninit to trigger the npc's OnInit too, if u have the mod of oninit command. Edited August 21, 2012 by Sperm Quote
Santino Posted August 21, 2012 Posted August 21, 2012 as i have said awhile ago you need to trigger the oninit, so load it thru npc/scripts_custom.conf npc: npc/custom/pathtoyourscript.txt then restart. if you don't want to restart always, when there's an oninit need to be triggered on a script. you can patch your source with this diff file . refer to the topic of the owner of this patch. http://rathena.org/board/topic/60694-oninit-trigger/ Quote
Jhosef Posted August 21, 2012 Author Posted August 21, 2012 its still the same i already restarted it but no chat and no menu Quote
Nipsino Posted August 21, 2012 Posted August 21, 2012 u need to load it thru script_custom.conf or @reloadscript, or just restart the server, you can do @oninit to trigger the npc's OnInit too, if u have the mod of oninit command. I can see the dialog/menu, but once I click on any of the Summon options, it'll crash the map server. u need to load it thru script_custom.conf or @reloadscript, or just restart the server, you can do @oninit to trigger the npc's OnInit too, if u have the mod of oninit command. I can see the dialog/menu, but once I click on any of the Summon options, it'll crash the map server. Oh yeah, forgot that the OnInit didn't load. I'll test it right now. Was lazy to put in the actualy script. xDD u need to load it thru script_custom.conf or @reloadscript, or just restart the server, you can do @oninit to trigger the npc's OnInit too, if u have the mod of oninit command. I can see the dialog/menu, but once I click on any of the Summon options, it'll crash the map server. u need to load it thru script_custom.conf or @reloadscript, or just restart the server, you can do @oninit to trigger the npc's OnInit too, if u have the mod of oninit command. I can see the dialog/menu, but once I click on any of the Summon options, it'll crash the map server. Oh yeah, forgot that the OnInit didn't load. I'll test it right now. Was lazy to put in the actualy script. xDD Nope. Just tested, it'll still crash the map server. Quote
Santino Posted August 21, 2012 Posted August 21, 2012 (edited) I can see the dialog/menu, but once I click on any of the Summon options, it'll crash the map server. Nope. Just tested, it'll still crash the map server. Here. to prevent from mapcrash You need to change this one: function script int__ { set .@num, atoi("\""+getarg(0)+"\""); if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0); set .@l, getstrlen(.@num); for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) { set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$; if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$; } return .@num$; } TO: function script int__ { set .@num, atoi(getarg(0)+""); if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0); set .@l, getstrlen(.@num+""); for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) { set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$; if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$; } return .@num$; } Edited August 21, 2012 by Sperm Quote
Question
Jhosef
Help us in this script
http://rathena.org/board/topic/60571-a-working-mvp-room-rental-system/
i try the Private mvp but when i try it no chatbox and no menus please help to fix it
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.