Jump to content
  • 0

Private MVP No chat Box and no Menu


Jhosef

Question


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

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

Link to comment
Share on other sites

13 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

still the same

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  198
  • Reputation:   47
  • Joined:  08/01/12
  • Last Seen:  

u load it using @loadnpc or scripts_custom.conf and restart?

cuz it's working fine with me. o.O

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  198
  • Reputation:   47
  • Joined:  08/01/12
  • Last Seen:  

can't test at online server though , sorry.

enable it at npc/scripts_custom.conf ? /hmm

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

i already enable it

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  218
  • Reputation:   16
  • Joined:  01/24/12
  • Last Seen:  

Could you post a screenie? That's strange how it's not showing a chatbox/menu.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  198
  • Reputation:   47
  • Joined:  08/01/12
  • Last Seen:  

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 by Sperm
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  198
  • Reputation:   47
  • Joined:  08/01/12
  • Last Seen:  

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/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

its still the same i already restarted it but no chat and no menu

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  218
  • Reputation:   16
  • Joined:  01/24/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  198
  • Reputation:   47
  • Joined:  08/01/12
  • Last Seen:  

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 by Sperm
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...