Jump to content
  • 0

help me on this debug T_T


chromus28

Question


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  263
  • Reputation:   1
  • Joined:  04/25/13
  • Last Seen:  


yuno,209,310,6 script Tapestry 111,{

mes "[Riot Entrance]";

mes "Please select a private Riot room.";

if ( getvariableofnpc(.rentitemid, "MVP Summoner") && getvariableofnpc(.rentitemamount, "MVP Summoner") )

mes "The cost to rent a room for "+ getvariableofnpc(.timeout, "MVP Summoner") +" minutes is "+ getvariableofnpc(.rentitemamount, "MVP Summoner") +" "+ getitemname( getvariableofnpc(.rentitemid, "MVP Summoner") ) +".";

else if ( getvariableofnpc(.rentcost, "MVP Summoner") )

mes "The cost to rent a room for "+ getvariableofnpc(.timeout, "MVP Summoner") +" minutes is "+ callfunc("int__", getvariableofnpc(.rentcost, "MVP Summoner") ) +" zeny.";

else

mes "You can only use the room for only "+ getvariableofnpc(.timeout, "MVP Summoner") +" minutes.";

mes " ";

for ( set .@i, 1; .@i <= 8; set .@i, .@i +1 ) {

if ( getvariableofnpc(.remaintime[.@i],"MVP Summoner") ) {

switch ( .type[.@i] ) {

case 1: set .@color$, "^EE8800"; break;

case 2: set .@color$, "^70CC11"; break;

case 3: set .@color$, "^0000FF"; break;

default: set .@color$, "^000000";

}

mes "Room #"+ .@i +" = "+ .@color$ + .whoinuse$[.@i] +"^000000";

}

}

next;

set .@room, select("Tier 1 ["+ getmapusers("1@cedi1") +"]",

"Tier 2 ["+ getmapusers("1@cedi2") +"]",

"Tier 3 ["+ getmapusers("1@cedi3") +"]",

"Tier 4 ["+ getmapusers("1@cedi4") +"]");

if ( getvariableofnpc(.remaintime[.@room],"MVP Summoner") ) {

if ( .inuseid[.@room] == getcharid(.type[.@room]) ) {

if ( getvariableofnpc(.killmonster,"MVP Summoner") && getmapusers("1@cedi_0"+ .@room) == 0 )

killmonsterall "1@cedi_0"+ .@room;

warp "1@cedi_0"+ .@room, 0,0;

end;

} else {

mes "[Riot Entrance]";

switch ( .type[.@room] ) {

case 1: set .@color$, "^EE8800Party "; break;

case 2: set .@color$, "^70CC11Guild "; break;

case 3: set .@color$, "^0000FFPlayer ";

}

mes "This room is reserved for ";

mes .@color$ + .whoinuse$[.@room] +"^000000 .";

if ( getgmlevel() < getvariableofnpc(.gmlvlkick,"MVP Summoner") ) {

mes "Please select another.";

close;

}

mes " ";

mes "Currently there are "+ getmapusers("1@cedi_0"+ .@room) +" players";

mes "in that room.";

set .@remaintime, getvariableofnpc(.remaintime[.@room],"MVP Summoner");

mes "It still has "+( .@remaintime /10 )+"mn "+( .@remaintime %10 )+"s left.";

set .@nobodycounter, getvariableofnpc(.nobodycounter[.@room],"MVP Summoner");

if ( .@nobodycounter )

mes "And have left empty for "+( .@nobodycounter /10 )+"mn "+( .@nobodycounter %10 )+"s.";

mes "Kick them ?";

next;

if ( select ( "No:Yes" ) == 1 ) close;

set getvariableofnpc(.remaintime[.@room],"MVP Summoner"), -1;

mes "[Riot Entrance]";

mes "Room#"+ .@room +" is empty now.";

close;

}

}

mes "[Riot Entrance]";

if ( getvariableofnpc(.rentitemid, "MVP Summoner") && getvariableofnpc(.rentitemamount, "MVP Summoner") ) {

if ( countitem(getvariableofnpc(.rentitemid, "MVP Summoner")) < getvariableofnpc(.rentitemamount, "MVP Summoner") ) {

mes "You don't have enough "+ getitemname( getvariableofnpc(.rentitemid, "MVP Summoner") ) +" to rent a room.";

close;

}

}

else if ( getvariableofnpc(.rentcost, "MVP Summoner") ) {

if ( zeny < getvariableofnpc(.rentcost, "MVP Summoner") ) {

mes "You don't have enough zeny to rent a room.";

close;

}

}

mes "You reserve this room for ...";

next;

set .@type, select("For my party members" );

if ( getcharid(.@type) == 0 ) {

mes "[Riot Entrance]";

mes "You do not own a "+( (.@type == 1)?"Party":"Guild" )+".";

close;

}

else if ( getvariableofnpc(.rentitemid, "MVP Summoner") && getvariableofnpc(.rentitemamount, "MVP Summoner") ) {

if ( countitem(getvariableofnpc(.rentitemid, "MVP Summoner")) < getvariableofnpc(.rentitemamount, "MVP Summoner") ) {

mes "You don't have enough "+ getitemname( getvariableofnpc(.rentitemid, "MVP Summoner") ) +" to rent a room.";

close;

}

}

else if ( getvariableofnpc(.remaintime[.@room],"MVP Summoner") ) {

mes "[Riot Entrance]";

mes "I'm sorry, somebody else has already register this room faster than you.";

close;

}

for ( set .@i, 1; .@i <= 8; set .@i, .@i +1 ) {

if ( getvariableofnpc(.remaintime[.@i],"MVP Summoner") && .@type == .type[.@i] && getcharid(.@type) == .inuseid[.@i] ) {

mes "[Riot Entrance]";

mes "You already rented Room#"+ .@i +". Use that room instead.";

close;

}

}

set .type[.@room], .@type;

set .inuseid[.@room], getcharid(.@type);

set .whoinuse$[.@room], strcharinfo( (.@type == 3)?0:.@type );

if ( getvariableofnpc(.rentitemid, "MVP Summoner") && getvariableofnpc(.rentitemamount, "MVP Summoner") ) {

if ( countitem(getvariableofnpc(.rentitemid, "MVP Summoner")) < getvariableofnpc(.rentitemamount, "MVP Summoner") ) end;

delitem getvariableofnpc(.rentitemid, "MVP Summoner"), getvariableofnpc(.rentitemamount, "MVP Summoner");

}

else if ( getvariableofnpc(.rentcost, "MVP Summoner") ) {

if ( zeny < getvariableofnpc(.rentcost, "MVP Summoner") ) end;

set zeny, zeny - getvariableofnpc(.rentcost, "MVP Summoner");

}

warp "1@cedi_0"+ .@room, 0,0;

killmonsterall "1@cedi_0"+ .@room;

donpcevent "MVP Summoner#"+ .@room +"::OnEnterMap";

end;

}

1@cedi1,45,54,6 duplicate(MVP Summoner) MVP Summoner#1 116

1@cedi2,45,54,6 duplicate(MVP Summoner) MVP Summoner#2 116

1@cedi3,45,54,6 duplicate(MVP Summoner) MVP Summoner#3 116

1@cedi4,45,54,6 duplicate(MVP Summoner) MVP Summoner#4 116

1@cedi1 mapflag nowarpto

1@cedi1 mapflag nowarpto

1@cedi1 mapflag nowarpto

1@cedi1 mapflag nowarpto

1@cedi1 mapflag nomemo

1@cedi1 mapflag nomemo

1@cedi1 mapflag nomemo

1@cedi1 mapflag nomemo

1@cedi1 mapflag noteleport

1@cedi1 mapflag noteleport

1@cedi1 mapflag noteleport

1@cedi1 mapflag noteleport

1@cedi1 mapflag nosave SavePoint

1@cedi1 mapflag nosave SavePoint

1@cedi1 mapflag nosave SavePoint

1@cedi1 mapflag nosave SavePoint

1@cedi1 mapflag nopenalty

1@cedi1 mapflag nopenalty

1@cedi1 mapflag nopenalty

1@cedi1 mapflag nopenalty

1@cedi2 mapflag nowarpto

1@cedi2 mapflag nowarpto

1@cedi2 mapflag nowarpto

1@cedi2 mapflag nowarpto

1@cedi2 mapflag nomemo

1@cedi2 mapflag nomemo

1@cedi2 mapflag nomemo

1@cedi2 mapflag nomemo

1@cedi2 mapflag noteleport

1@cedi2 mapflag noteleport

1@cedi2 mapflag noteleport

1@cedi2 mapflag noteleport

1@cedi2 mapflag nosave SavePoint

1@cedi2 mapflag nosave SavePoint

1@cedi2 mapflag nosave SavePoint

1@cedi2 mapflag nosave SavePoint

1@cedi2 mapflag nopenalty

1@cedi2 mapflag nopenalty

1@cedi2 mapflag nopenalty

1@cedi2 mapflag nopenalty

1@cedi3 mapflag nowarpto

1@cedi3 mapflag nowarpto

1@cedi3 mapflag nowarpto

1@cedi3 mapflag nowarpto

1@cedi3 mapflag nomemo

1@cedi3 mapflag nomemo

1@cedi3 mapflag nomemo

1@cedi3 mapflag nomemo

1@cedi3 mapflag noteleport

1@cedi3 mapflag noteleport

1@cedi3 mapflag noteleport

1@cedi3 mapflag noteleport

1@cedi3 mapflag nosave SavePoint

1@cedi3 mapflag nosave SavePoint

1@cedi3 mapflag nosave SavePoint

1@cedi3 mapflag nosave SavePoint

1@cedi3 mapflag nopenalty

1@cedi3 mapflag nopenalty

1@cedi3 mapflag nopenalty

1@cedi3 mapflag nopenalty

1@cedi4 mapflag nowarpto

1@cedi4 mapflag nowarpto

1@cedi4 mapflag nowarpto

1@cedi4 mapflag nowarpto

1@cedi4 mapflag nomemo

1@cedi4 mapflag nomemo

1@cedi4 mapflag nomemo

1@cedi4 mapflag nomemo

1@cedi4 mapflag noteleport

1@cedi4 mapflag noteleport

1@cedi4 mapflag noteleport

1@cedi4 mapflag noteleport

1@cedi4 mapflag nosave SavePoint

1@cedi4 mapflag nosave SavePoint

1@cedi4 mapflag nosave SavePoint

1@cedi4 mapflag nosave SavePoint

1@cedi4 mapflag nopenalty

1@cedi4 mapflag nopenalty

1@cedi4 mapflag nopenalty

Edited by chromus28
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

can you provide please some screen shots to see error o:?  

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...