Jump to content

Question

Posted (edited)

im using EA SVN

 

 

33kxkyu.jpg
 
i got 2 problem this script
 
See the 1 and 2 problem
 
this is the Script

 

 

/////

 

bugreport:'prontera,203,178,5 script Private MVP Room 100,{ mes "[Private MVP Room"; mes "Please select a private MVP 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"; } }']

 

 

how can the entrance pee to item bla

Edited by youtube

8 answers to this question

Recommended Posts

Posted · Hidden by Capuche, July 19, 2013 - not in english
Hidden by Capuche, July 19, 2013 - not in english

@die ka Ja ramos? hahahaha

Posted (edited) · Hidden by Capuche, July 19, 2013 - not in english
Hidden by Capuche, July 19, 2013 - not in english

IamJet

 

kaya ng ako ng post yan kasi hinde ako alam!

  Edited by youtube
Posted

The same has previously. You just have to read the warning on the console

"Unexpected type for argument 1. Expected string."

set .@l, getstrlen(.@num);

replace by

set .@l, getstrlen(.@num+"");
Posted

In most cases there is no need to "re-invent the wheel", I would start by finding a script that uses cash points as an example, and that way you learn how to implement it in any script in the future. This way you learn how to do it, and how to tackle future scripts you wish to customize.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...