Jump to content
  • 0

mvproom npc error


donkeyg

Question


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

the npc was work fine on eathena, but since i move the eathena to rathena SVN, this mvp_room files comes out error

91501214.jpg

Uploaded with ImageShack.us

here is my script

L_Start: // I hate gotos ... but ...
set .@dif, strnpcinfo(2);
if ( .remind[.@dif] == 0 ) {
set .remind[.@dif], 1;
initnpctimer;
}
mes "[MVP Summoner]";
mes "Hi, what can I do for you ?";
next;
switch ( select(.menu$) ) {
case 1:
mes "[MVP Summoner]";
if ( getmapmobs("this") > 0 {
mes "I cannot offer heal service when there are monsters around.";
close;
}
sc_end sc_poison;
sc_end sc_hallucination;
sc_end sc_stripweapon;
sc_end sc_striparmor;
sc_end sc_striphelm;
sc_end sc_stripshield;
sc_end sc_changeundead;
sc_end sc_orcish;
sc_end sc_berserk;
sc_end sc_ske;
sc_end sc_swoo;
sc_end sc_ska;
percentheal 100,100;
specialeffect2 7;
mes "You have completely healed.";
close;

Edited by donkeyg
Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   2
  • Joined:  05/23/12
  • Last Seen:  

if ( getmapmobs("this") > 0 )  {

no ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

u mean remove the line?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  183
  • Reputation:   15
  • Joined:  06/10/12
  • Last Seen:  

if(getmapmobs("NAMEOFMAP") > 0) ...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  06/22/12
  • Last Seen:  

You forgot a ) in this line:

if ( getmapmobs("this") > 0  {

It should be this:

if ( getmapmobs("this") > 0 )  {

Edited by Yanji
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

it has many room

06guild_01,49,49,4 duplicate(MVP Summoner) MVP Summoner#1 116
06guild_02,49,49,4 duplicate(MVP Summoner) MVP Summoner#2 116
06guild_03,49,49,4 duplicate(MVP Summoner) MVP Summoner#3 116
06guild_04,49,49,4 duplicate(MVP Summoner) MVP Summoner#4 116
06guild_05,49,49,4 duplicate(MVP Summoner) MVP Summoner#5 116
06guild_06,49,49,4 duplicate(MVP Summoner) MVP Summoner#6 116
06guild_07,49,49,4 duplicate(MVP Summoner) MVP Summoner#7 116
06guild_08,49,49,4 duplicate(MVP Summoner) MVP Summoner#8 116

if ( getmapmobs("this") > 0 ) {

You forgot a ) in this line:

if ( getmapmobs("this") > 0  {

It should be this:

if ( getmapmobs("this") > 0 )  {

yes, mine is same as u

Edited by donkeyg
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  113
  • Reputation:   2
  • Joined:  10/29/12
  • Last Seen:  

Here's the converted script for rathena from eathena script.

http://pastebin.com/XWNdE76c

Credits ~AnnieRuru~

Added killmonsterall function to empty rooms that ended for the rent duration.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  355
  • Reputation:   34
  • Joined:  02/09/12
  • Last Seen:  

The command 'getmapmobs' doens't work in rathena :P in rathena is 'mobcount' and.. Yeah.. Also killmonsterall is changed :3

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

I have updated the script to 1.4a hidden here

Credits ~AnnieRuru~

Added killmonsterall function to empty rooms that ended for the rent duration.

weird, I thought I already made it kill all the monsters inside upon renting a room

    warp "06guild_0"+ .@room, 0,0;
   killmonsterall "06guild_0"+ .@room;
   donpcevent "MVP Summoner#"+ .@room +"::OnEnterMap";
   end;

and

    // If the room has left over monsters while nobody in the room and the room not give up yet, shall we kill monsters in empty room ?
   set .killmonster, 1; // Default is yes

the default setting is yes,

you set it to 0 and then claim you edited the script to kill left over monster ? /hmm

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  113
  • Reputation:   2
  • Joined:  10/29/12
  • Last Seen:  

@Annieruru - i meant it already has the killmonster function. It's the script back in eathena. I don't claim anything just to make things clear. /gawi

Here's your post in eathena http://www.eathena.ws/board/index.php?showtopic=187654

just added

killmonsterall .@map$; where it was checking the time that's all.

anyway Annieruru I don't (again) claim anything. it's urs.

and I didn't know about 1.4a. so my miss on that.

Edited by pandaplaygames
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...