Leaderboard
Popular Content
Showing content with the highest reputation on 10/28/14 in all areas
-
Hello dear community, I haven't done a public release in quite a while so I wanted to do something for you all again, but this time in a different category than maps. Summary This is a big pet pack that I've been using for my own server, the players loved it. It was definitely one of the bigger attractions that caused the server to be successful. There are approx 627 pets (including the commented pets) and I followed up until episode 14. All pets can be tamed with the same taming item (#12105). Currently, immovables and the bigger monsters (Anubis, Abysmal Knight, Detale, Bapho, Naght, Dark Lord, etc) are commented. If you wish to enable them, simply uncomment them; although I do not advice this for immovables to avoid lost pets! _____________________________________________________________________________ Server-Side Installation Just paste the following entries in your trunk. Needless to say, but don't replace the whole thing, just add it at the bottom. db/pet_db2.txt db/item_db2.txt Client-Side Installation Same as above, copy and paste the content of these links in your data folder. data/idnum2itemdesctable.txt data/idnum2itemdisplaynametable.txt data/idnum2itemresnametable.txt About the universal tame... Since I've used an existing item ID for this, you should change the script of it: 12105,Monster_Tame,Monster Tame,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ pet 0; },{},{} It's up to you to change the data/text files appropriately to match its effect! _____________________________________________________________________________ Questions & Answers Q: Have all pets been tested? A: No. I did not go through them all, that said you might come across an egg that summons the wrong monster but that's not very difficult to fix. Q: I see these are done with the old text files, do you also have a 2013+ client (itemInfo.lua) version? A: No. I do not. My server was running on the old client files so I never needed this. If you want to make it happen, I recommend you to use kind sir xazax's converter. Q: How to change the capture rate? A: Refer to the pet_db2.txt structure and the conf/battle/pets.conf file. Q: Some pets do not open! The egg turns red as it is an broken item! What do I do? A: The MAX_PET_DB in pet.h must be increased to 3000 (or up), make sure to re-compile after. Your one broken egg might still not work though, drop it and make another, you'll see that it works fine now. Q: I un-commented the MVPs/Mini-Bosses, but I still can't capture any! How come? A: Servers by default do not support capturing Boss Mosters, if you wish to enable this, go to src/map/pet.c and search for "// catch_target_class == 0 is used for universal lures (except bosses for now). [skotlex]" and change the lines below into: if (sd->catch_target_class == 0) sd->catch_target_class = md->class_; if(i < 0 || sd->catch_target_class != md->class_) { clif_emotion(&md->bl, 7); //mob will do if wrong lure is used on them. clif_pet_roulette(sd,0); sd->catch_target_class = -1; return 1; } // (Don't forget to re-compile after) _____________________________________________________________________________ Have fun with this! ♥1 point
-
1 point
-
Cara isso é o formato do teu NPC, faz assim, abre o NPC no Notepad ++ , vai em formatar > Codificação ANSI Vai funcionar. Faz isso a todos os NPC que voce mecheu, porque provavelmente voce transformou eles em UTF tbm.1 point
-
When you signed up at Trinity, were you given a fixed username and password to connect to the SQL database, or did you get to choose your own? If the latter, I don't know. If the first, the cause might be that you were given the same connection info as a server that only recently ended their plan with Trinity. I've experienced this too, if a hosting provider loses a customer, they often times give that service slot to another (new) customer. With other words, the accounts that are being created might just be old players trying to see what's up with their old server. If the previous customer of Trinity still has a website/CP up with enabled registration, they are registering that way. An easy solution is to request a SQL password change.1 point
-
@exneval : ok, later @Kido&Ginji : Yes, it's here : Name : Witch_Pumpkin_Hat Categorie : Up Headgear File Size: 423 KB Author: Gravity Download : Hat - Witch_Pumpkin_Hat [ToZorMan].zip Link : www.green-peach.net Name : Real_Golden_Mole Game : Trickster Online File Size: 620 KB Author: ToZorMan Download : Mob - Real_Golden_Mole [ToZorMan].zip Link : www.green-peach.net ----------------------------------------------------------------- Name : Coco Game : Ragnarok Online File Size: 590 KB Author: Gravity Download : Mob - Coco [ToZorMan].zip Link : www.green-peach.net ----------------------------------------------------------------- Name : Gangster_Scarf Categorie : Lower Headgear File Size: 296 KB Author: Gravity Download : Hat - Gangster_Scarf [ToZorMan].zip Link : www.green-peach.net1 point
-
ops it's mapreg. DELETE FROM `mapreg` WHERE `str` LIKE '$topmvp%';1 point
-
And if you don't want to re-diff your client all over again, you could hex it manually (not everyone is a fan of diffing!). Search : 55 8B EC 8B 45 08 8B 55 10 89 41 04 8B 45 0C 89 51 0C 89 41 08 5D C2 0C 00 90 90 90 90 90 90 90 55 8B EC Replace: C2 0C 00 8B 45 08 8B 55 10 89 41 04 8B 45 0C 89 51 0C 89 41 08 5D C2 0C 00 90 90 90 90 90 90 90 C2 14 001 point
-
Name : Mole Game : Ragnarok Online File Size: 673 KB Author: Gravity Download : Mob - Mole [ToZorMan].zip Link : www.green-peach.net ----------------------------------------------------------------- Name : Lotus_Wormhole Game : Trickster Online File Size: 647 KB Author: ToZorMan Download : Mob - Lotus_Wormhole [ToZorMan].zip Link : www.green-peach.net ----------------------------------------------------------------- Name : Evil_Wing Categorie : Upper Headgear File Size: 293 KB Author: Gravity Download : Hat - Evil_Wing [ToZorMan].zip Link : www.green-peach.net1 point
-
prontera,147,168,4 script Dumbledore 735,{ mes "Apa yang ingin kamu ketahui?"; menu "Pemegang Cashpoint terbanyak",L_CP,"Pemegang Zeny terbanyak",L_Zeny; L_CP: next; set .@nb, query_sql("SELECT account_id, value FROM `global_reg_value` WHERE str = '#CASHPOINTS' ORDER BY value DESC LIMIT 5;", .@accid, .@value); mes "Pemegang Cashpoint terbanyak: TOP 5"; for(set .@i,0; .@i <= .@nb; set .@i,.@i+1) mes .@i+1+". "+.@accid[.@i]+" ("+.@value[.@i]+")"; end; L_Zeny: next; set .@nb, query_sql("SELECT name, zeny FROM `char` ORDER BY zeny DESC LIMIT 5", .@name$, .@zeny); mes "Pemegang Zeny terbanyak: TOP 5"; for(set .@i,0; .@i <= .@nb; set .@i,.@i+1) mes .@i+1+". "+.@name$[.@i]+" ("+.@zeny[.@i]+")"; end; } limited to 5. Since #cashpoints is embedded to accountid, not char_id, then it can only show the account id. For some reasons, I'm not picking a random char's name from that account ID nor use the "login" from that accountid (security, privacy)1 point
-
1 point
-
huh Annie did it o: thanks Annie o:! lol sorry i didn't read the second post of yours Mau, where you specify the acces and ids and items x_x sorry D:! i made the script only based on the first post so sorry DDDD:! well, anyway, Annie ended it with short and best results, you are on the best hands with her when she does script lol here is my script made with only menu options, eveyrone will laught/cry about this lol prontera,156,174,5 script Rental Guy 822,{ mes "Hello, i can exchange your tickets for rentals and or expand the time of your rental item"; mes "However, i can only do it for 1 day per ticket with a limit of 10 tickets or 10 days"; next; mes "Firstly, please select how many days do you wish to expand your item, if you want to expand, if not select the last option."; mes "Note, tickets will be deleted on selection so please pick wise, also note that to expand the duration of an item you will need the item with you"; next; menu "1 day",L_1,"2 days",L_2,"3 days",L_3,"4 days",L_4,"5 days",L_5,"6 days",L_6,"7 days",L_7,"8 days",L_8,"9 days",L_9,"10 days",L_10,"Rent an item for first time",L_rent,"cancel",L_cancel; next; L_1: if(countitem(7711)<1)goto no_item; delitem 7711,1; mes "Allright, now select an item"; menu "Sleipnir",L_S1,"Meginghard",L_M1,"Asprika",L_A1,"Brisingamen",L_B1,"Mjolnir",L_Mj1; next; L_S1: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,86400; next; close; L_M1: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,86400; next; close; L_A1: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,86400; next; close; L_B1: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,86400; next; close; L_Mj1: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,86400; next; close; L_2: if(countitem(7711)<2)goto no_item; delitem 7711,2; mes "Allright, now select an item"; menu "Sleipnir",L_S2,"Meginghard",L_M2,"Asprika",L_A2,"Brisingamen",L_B2,"Mjolnir",L_Mj2; next; L_S2: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,172800; next; close; L_M2: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,172800; next; close; L_A2: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,172800; next; close; L_B2: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,172800; next; close; L_Mj2: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,172800; next; close; L_3: if(countitem(7711)<3)goto no_item; delitem 7711,3; mes "Allright, now select an item"; menu "Sleipnir",L_S3,"Meginghard",L_M3,"Asprika",L_A3,"Brisingamen",L_B3,"Mjolnir",L_Mj3; L_S3: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,259200; next; close; L_M3: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,259200; next; close; L_A3: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,259200; next; close; L_B3: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,259200; next; close; L_Mj3: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,259200; next; close; L_4: if(countitem(7711)<4)goto no_item; delitem 7711,4; mes "Allright, now select an item"; menu "Sleipnir",L_S4,"Meginghard",L_M4,"Asprika",L_A4,"Brisingamen",L_B4,"Mjolnir",L_Mj4; next; L_S4: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,345600; next; close; L_M4: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,345600; next; close; L_A4: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,345600; next; close; L_B4: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,345600; next; close; L_Mj4: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,345600; next; close; L_5: if(countitem(7711)<5)goto no_item; delitem 7711,5; mes "Allright, now select an item"; menu "Sleipnir",L_S5,"Meginghard",L_M5,"Asprika",L_A5,"Brisingamen",L_B5,"Mjolnir",L_Mj5; next; L_S5: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,432000; next; close; L_M5: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,432000; next; close; L_A5: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,432000; next; close; L_B5: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,432000; next; close; L_Mj5: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,432000; next; close; L_6: if(countitem(7711)<6)goto no_item; delitem 7711,6; mes "Allright, now select an item"; menu "Sleipnir",L_S6,"Meginghard",L_M6,"Asprika",L_A6,"Brisingamen",L_B6,"Mjolnir",L_Mj6; next; L_S6: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,518400; next; close; L_M6: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,518400; next; close; L_A6: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,518400; next; close; L_B6: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,518400; next; close; L_Mj6: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,518400; next; close; L_7: if(countitem(7711)<7)goto no_item; delitem 7711,7; mes "Allright, now select an item"; menu "Sleipnir",L_S7,"Meginghard",L_M7,"Asprika",L_A7,"Brisingamen",L_B7,"Mjolnir",L_Mj7; next; L_S7: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,604800; next; close; L_M7: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,604800; next; close; L_A7: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,604800; next; close; L_B7: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,604800; next; close; L_Mj7: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,604800; next; close; L_8: if(countitem(7711)<8)goto no_item; delitem 7711,8; mes "Allright, now select an item"; menu "Sleipnir",L_S8,"Meginghard",L_M8,"Asprika",L_A8,"Brisingamen",L_B8,"Mjolnir",L_Mj8; next; L_S8: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,691200; next; close; L_M8: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,691200; next; close; L_A8: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,691200; next; close; L_B8: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,691200; next; close; L_Mj8: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,691200; next; close; L_9: if(countitem(7711)<9)goto no_item; delitem 7711,9; mes "Allright, now select an item"; menu "Sleipnir",L_S9,"Meginghard",L_M9,"Asprika",L_A9,"Brisingamen",L_B9,"Mjolnir",L_Mj9; next; L_S9: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,777600; next; close; L_M9: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,777600; next; close; L_A9: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,777600; next; close; L_B9: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,777600; next; close; L_Mj9: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,777600; next; close; L_10: if(countitem(7711)<10)goto no_item; delitem 7711,10; mes "Allright, now select an item"; menu "Sleipnir",L_S0,"Meginghard",L_M0,"Asprika",L_A0,"Brisingamen",L_B0,"Mjolnir",L_Mj0; next; L_S0: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,864000; next; close; L_M0: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,864000; next; close; L_A0: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,864000; next; close; L_B0: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,864000; next; close; L_Mj0: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,864000; next; close; no_item: mes "Huh trying to fool me?"; mes "you don't have sufficent tickets."; mes "Sorry i can't refund any ticket."; close; no_equip: mes "Sorry but seems that you don't even have the correct equip"; mes "First get it and then we may talk"; close; L_cancel: mes "Allright don't worry, come to me any time"; close; L_rent: mes "Allright, select an item to rent for first time and how many days"; mes "Note, on selection the ticket will be deleted, so please pick wise"; mes "Remember, for each day you will need a ticket"; menu "1 Day",L_n1,"2 Days",L_n2,"3 Days",L_n3,"4 Days",L_n4,"5 Days",L_n5,"6 Days",L_n6,"7 Days",L_n7,"8 Days",L_n8,"9 Days",L_n9,"10 Days",L_n10,"Cancel",L_cancel; next; L_n1: if(countitem(7711)<1)goto no_item; delitem 7711,1; mes "Allright, now select an item"; menu "Sleipnir",L_nSs1,"Meginghard",L_nMm1,"Asprika",L_nAa1,"Brisingamen",L_nBb1,"Mjolnir",L_nMmj1; next; L_nSs1: rentitem 2410,86400; next; close; L_nMm1: rentitem 2629,86400; next; close; L_nAa1: rentitem 2541,86400; next; close; L_nBb1: rentitem 2630,86400; next; close; L_nMmj1: rentitem 1530,86400; next; L_n2: if(countitem(7711)<2)goto no_item; delitem 7711,2; mes "Allright, now select an item"; menu "Sleipnir",L_nSs2,"Meginghard",L_nMm2,"Asprika",L_nAa2,"Brisingamen",L_nBb2,"Mjolnir",L_nMmj2; next; L_nSs2: rentitem 2410,172800; next; close; L_nMm2: rentitem 2629,172800; next; close; L_nAa2: rentitem 2541,172800; next; close; L_nBb2: rentitem 2630,172800; next; close; L_nMmj2: rentitem 1530,172800; next; close; L_n3: if(countitem(7711)<3)goto no_item; delitem 7711,3; mes "Allright, now select an item"; menu "Sleipnir",L_nSs3,"Meginghard",L_nMm3,"Asprika",L_nAa3,"Brisingamen",L_nBb3,"Mjolnir",L_nMmj3; L_nSs3: rentitem 2410,259200; next; close; L_nMm3: rentitem 2629,259200; next; close; L_nAa3: rentitem 2541,259200; next; close; L_nBb3: rentitem 2630,259200; next; close; L_nMmj3: rentitem 1530,259200; next; close; L_n4: if(countitem(7711)<4)goto no_item; delitem 7711,4; mes "Allright, now select an item"; menu "Sleipnir",L_nSs4,"Meginghard",L_nMm4,"Asprika",L_nAa4,"Brisingamen",L_nBb4,"Mjolnir",L_nMmj4; next; L_nSs4: rentitem 2410,345600; next; close; L_nMm4: rentitem 2629,345600; next; close; L_nAa4: rentitem 2541,345600; next; close; L_nBb4: rentitem 2630,345600; next; close; L_nMmj4: rentitem 1530,345600; next; close; L_n5: if(countitem(7711)<5)goto no_item; delitem 7711,5; mes "Allright, now select an item"; menu "Sleipnir",L_nSs5,"Meginghard",L_nMm5,"Asprika",L_nAa5,"Brisingamen",L_nBb5,"Mjolnir",L_nMmj5; next; L_nSs5: rentitem 2410,432000; next; close; L_nMm5: rentitem 2629,432000; next; close; L_nAa5: rentitem 2541,432000; next; close; L_nBb5: rentitem 2630,432000; next; close; L_nMmj5: rentitem 1530,432000; next; close; L_n6: if(countitem(7711)<6)goto no_item; delitem 7711,6; mes "Allright, now select an item"; menu "Sleipnir",L_nSs6,"Meginghard",L_nMm6,"Asprika",L_nAa6,"Brisingamen",L_nBb6,"Mjolnir",L_nMmj6; next; L_nSs6: rentitem 2410,518400; next; close; L_nMm6: rentitem 2629,518400; next; close; L_nAa6: rentitem 2541,518400; next; close; L_nBb6: rentitem 2630,518400; next; close; L_nMmj6: rentitem 1530,518400; next; close; L_n7: if(countitem(7711)<7)goto no_item; delitem 7711,7; mes "Allright, now select an item"; menu "Sleipnir",L_nSs7,"Meginghard",L_nMm7,"Asprika",L_nAa7,"Brisingamen",L_nBb7,"Mjolnir",L_nMmj7; next; L_nSs7: rentitem 2410,604800; next; close; L_nMm7: rentitem 2629,604800; next; close; L_nAa7: rentitem 2541,604800; next; close; L_nBb7: rentitem 2630,604800; next; close; L_nMmj7: rentitem 1530,604800; next; close; L_n8: if(countitem(7711)<8)goto no_item; delitem 7711,8; mes "Allright, now select an item"; menu "Sleipnir",L_nSs8,"Meginghard",L_nMm8,"Asprika",L_nAa8,"Brisingamen",L_nBb8,"Mjolnir",L_nMmj8; next; L_nSs8: rentitem 2410,691200; next; close; L_nMm8: rentitem 2629,691200; next; close; L_nAa8: rentitem 2541,691200; next; close; L_nBb8: rentitem 2630,691200; next; close; L_nMmj8: rentitem 1530,691200; next; close; L_n9: if(countitem(7711)<9)goto no_item; delitem 7711,9; mes "Allright, now select an item"; menu "Sleipnir",L_nSs9,"Meginghard",L_nMm9,"Asprika",L_nAa9,"Brisingamen",L_nBb9,"Mjolnir",L_nMmj9; next; L_nSs9: rentitem 2410,777600; next; close; L_nMm9: rentitem 2629,777600; next; close; L_nAa9: rentitem 2541,777600; next; close; L_nBb9: rentitem 2630,777600; next; close; L_nMmj9: rentitem 1530,777600; next; close; L_n10: if(countitem(7711)<10)goto no_item; delitem 7711,10; mes "Allright, now select an item"; menu "Sleipnir",L_nSs0,"Meginghard",L_nMm0,"Asprika",L_nAa0,"Brisingamen",L_nBb0,"Mjolnir",L_nMmj0; next; L_nSs0: rentitem 2410,864000; next; close; L_nMm0: rentitem 2629,864000; next; close; L_nAa0: rentitem 2541,864000; next; close; L_nBb0: rentitem 2630,864000; next; close; L_nMmj0: rentitem 1530,864000; next; close; OnInit: waitingroom "Rentals",0; end; } i totally suugest you to use AnnieRuru's script, the one that is over this post lol well Mau, i hope your request is satisfied (which i assume it is lol) hope see you around here on the community, always ask for help if you need again, cya !1 point
-
@Kido has actually tried to script this, and asked for my support in PM but his script is made too long with just the *menu script command I think this is why most scripters turn away because many people here still couldn't utilize advance scripting technique and I also noticed this extending rental item feature ... which have to use getinventorylist command makes me wants to dig this in myself I lost count of how many techniques I used inside EDIT: wait, accessory and god items has different rate ok prontera,150,180,5 script kjdhfksj 100,{ mes "what do you want?"; next; if ( select ( "Gears", "Extend my items" ) == 1 ) { mes "what item you want"; next; .@category_select = select ( "Accessory", "Lower Gears", "Mid Gears", "Head Gears", "Godly Gears" ); mes "what item you want"; next; if ( .@category_select != 5 ) .@id_select = select( getd( "."+ .category$[ .@category_select ] +"_id_menu$" ) ) -1; else .@id_select = select( .god_id_menu$ ) -1; mes "how many days"; next; .@days = select( .day_menu$ ); if ( countitem( .rentitem ) < .@days ) { mes "sorry insufficient ticket!"; close; } mes "here's you're item!"; if ( .@category_select == 1 || .@category_select == 5 ) delitem .rentitem, .@days *2; else delitem .rentitem, .@days; if ( .@category_select != 5 ) rentitem getd( "."+ .category$[ .@category_select ] +"_id_start" ) + .@id_select, 60*60*24* .@days; else rentitem .god_id[ .@id_select ], 60*60*24* .@days; } else { getinventorylist; for ( .@i = 0; .@i < @inventorylist_count; .@i++ ) { if ( compare( .id_compare$, "#"+ @inventorylist_id[.@i] +"#" ) ) { .@item_id[.@c] = @inventorylist_id[.@i]; .@expire[.@c] = @inventorylist_expire[.@i]; .@menu$ = .@menu$ + getitemname( @inventorylist_id[.@i] ) +":"; .@c++; } } if ( !.@c ) { mes "there is no rental item in your inventory"; close; } mes "which item"; next; .@s = select( .@menu$ ) -1; if ( countitem( .@item_id[.@s] ) >= 2 ) { mes "there are more than 1 of "+ getitemname( .@item_id[.@s] ) +" in your inventory. Make sure there is only 1 of them in your inventory."; close; } mes "how many days"; next; .@days = select( .day_menu$ ); if ( countitem( .rentitem ) < .@days ) { mes "sorry insufficient ticket!"; close; } mes "here's you're item!"; if ( .@item_id[.@s] >= 8000 && .@item_id[.@s] < 9000 ) delitem .rentitem, .@days; else delitem .rentitem, .@days *2; delitem .@item_id[.@s], 1; rentitem .@item_id[.@s], .@expire[.@s] - gettimetick(2) + 60*60*24* .@days; close; } close; OnInit: setarray .category$[1], "accessory", "lower", "mid", "head"; for ( .@i = 1; .@i <= 10; .@i++ ) .day_menu$ = .day_menu$ + .@i +":"; .id_compare$ = "#"; set .rentitem, 24042; // itemID to rent // Accessory items .accessory_id_start = 20000; .accessory_id_end = 20005; for ( .@i = .accessory_id_start; .@i <= .accessory_id_end; .@i++ ) { .accessory_id_menu$ = .accessory_id_menu$ + getitemname( .@i ) +":"; .id_compare$ = .id_compare$ + .@i +"#"; } // Lower Gears .lower_id_start = 8000; .lower_id_end = 8021; for ( .@i = .lower_id_start; .@i <= .lower_id_end; .@i++ ) { .lower_id_menu$ = .lower_id_menu$ + getitemname( .@i ) +":"; .id_compare$ = .id_compare$ + .@i +"#"; } // Mid Gears .mid_id_start = 8022; .mid_id_end = 8036; for ( .@i = .mid_id_start; .@i <= .mid_id_end; .@i++ ) { .mid_id_menu$ = .mid_id_menu$ + getitemname( .@i ) +":"; .id_compare$ = .id_compare$ + .@i +"#"; } // Head Gears .head_id_start = 8037; .head_id_end = 8059; for ( .@i = .head_id_start; .@i <= .head_id_end; .@i++ ) { .head_id_menu$ = .head_id_menu$ + getitemname( .@i ) +":"; .id_compare$ = .id_compare$ + .@i +"#"; } // Godly Item IDs setarray .god_id, 2629, 2410; .@size = getarraysize( .god_id ); for ( .@i = 0; .@i < .@size; .@i++ ) { .god_id_menu$ = .god_id_menu$ + getitemname( .god_id[.@i] ) +":"; .id_compare$ = .id_compare$ + .god_id[.@i] +"#"; } end; } EDIT for below: at least you have tried ~1 point