Since my previous question is kind of odd or hard to understand, i did some search and i found out what i actually need was a warper to rent an island/map/house
what i wanted was, if a player bring an item to this npc, i will pop up a menu and show any vacant island in green text, then he can rent for maximum 30 days, if there is an island which already been rent by any other players it will be shown in red txt,
if player wish to rent the island, he will need the item (which will be deleted) and he can set up a password for him and his friend to be warped to the rented island.
i do wish any rented island will not be removed or anything during server reboot, restart of stopped.
also i did manage to find something similar to my current request, but need a lil tweak to fit my preference.... which i had no idea how to do so..
prontera,155,187,5 script sdfjhsdfkj 100,{// script check for empty roomfor(.@i=1;.@i<=8;.@i++)if( getmapusers("06guild_0"+.@i)==0).password$[.@i]="";
mes "select a room";
mes " ";for(.@i=1;.@i<=8;.@i++)if(.password$[.@i]!="")
mes "^000000Room no."+.@i+" = ^0000FF"+.creater_name$[.@i];
next;for(.@i=1;.@i<=8;.@i++)if(.password$[.@i]=="").@menu$=.@menu$+"^000000Room no."+.@i+" = ^FF0000<Free>:";else.@menu$=.@menu$+"^000000Room no."+.@i+" = ^0000FF"+.creater_name$[.@i]+":";.@room= select(.@menu$);if(.password$[.@room]==""){if( zeny <50000){
mes "you need 50,000 zeny to rent a room";
close;}
mes "this room is available";
mes "please input a password";
mes "string length : min 4, max 30";
next;if( input(.@pass$,4,30)){
mes "invalid string length";
close;}if(.@pass$==" ") close;
mes "password set to this ?";
mes "^FF0000"+.@pass$;
next;if( select ("Yes","No")==2) close;// double check is there anyone rent faster than youif(.password$[.@room]!=""){
mes "I'm sorry but somebody rent this room faster than you";
close;}// again double check the zeny requirement because of Ragnarok stupid mail system (send mail using friend list) <.< always make a habit to counter check item and zeny requirementif( zeny <50000){
mes "don't cheat me";
close;}
zeny -=50000;// OOOOPPSS !!.password$[.@room]=.@pass$;.creater_name$[.@room]= strcharinfo(0);
warp "06guild_0"+.@room,49,49;
end;}
mes "input the password";// always have some recovery system for GMs to recover passwordif( getgmlevel()==99){
mes " ";
mes "^FF0000 Admin ONLY";
mes "^0000FF"+.password$[.@room];}
next;
input .@pass$;if(.@pass$!=.password$[.@room]){
mes "wrong password input";
close;}
warp "06guild_0"+.@room,49,49;
end;}06guild_01 mapflag nowarpto
06guild_02 mapflag nowarpto
06guild_03 mapflag nowarpto
06guild_04 mapflag nowarpto
06guild_05 mapflag nowarpto
06guild_06 mapflag nowarpto
06guild_07 mapflag nowarpto
06guild_08 mapflag nowarpto
Question
Dolphin86
Since my previous question is kind of odd or hard to understand, i did some search and i found out what i actually need was a warper to rent an island/map/house
what i wanted was, if a player bring an item to this npc, i will pop up a menu and show any vacant island in green text, then he can rent for maximum 30 days, if there is an island which already been rent by any other players it will be shown in red txt,
if player wish to rent the island, he will need the item (which will be deleted) and he can set up a password for him and his friend to be warped to the rented island.
i do wish any rented island will not be removed or anything during server reboot, restart of stopped.
also i did manage to find something similar to my current request, but need a lil tweak to fit my preference.... which i had no idea how to do so..
here is the script made by @AnnieRuru
please help... thanks
Edited by Dolphin86Link to comment
Share on other sites
3 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.