LuLu Posted November 16, 2013 Posted November 16, 2013 make 2 items. 1. the real item 2. the item box make the script of the box with "rentitem" giving to real item with time. Quote
gyroguevarra Posted November 16, 2013 Author Posted November 16, 2013 Pano po ba yung script ng box? Newbie pa lang po ako Quote
LuLu Posted November 16, 2013 Posted November 16, 2013 (edited) Example: 12935,Infiltrator_Box,Infiltrator Box,18,20,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ rentitem 1267,604800; },{},{} rentitem <itemID>,<duration>; rentitem 1267,604800; read this for more info about rentitem [spoiler=rentitem]*rentitem <item id>,<time>;*rentitem "<item name>",<time>;Creates a rental item in the attached character's inventory. The item will expirein seconds and be automatically deleted. When receiving a rental item,the character will receive a message in their chat window. The character willalso receive warning messages in their chat window before the item disappears.This command can not be used to rent stackable items. Rental items cannot bedropped, traded, sold to NPCs, or placed in guild storage. (i.e. trade mask 75)Note: 'delitem' in an NPC script can still remove rental items. Edited November 16, 2013 by LuLu 1 Quote
gyroguevarra Posted November 16, 2013 Author Posted November 16, 2013 Nakagawa na po ako 22600,Sleipnir_Box,Sleipnir Box,18,20,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ rentitem 2410,604800; },{},{} Yan po. tapos po? nag @item po ako wala po nalabas Quote
gyroguevarra Posted November 16, 2013 Author Posted November 16, 2013 Okay na po pero unknown item. Pano po ayusin yung unknown item? Quote
Mau Posted November 16, 2013 Posted November 16, 2013 hha edi punta ka sa itemdesctable,itemnum....,iteemdisplay.... itemslottable slotcountable ppala Quote
LuLu Posted November 16, 2013 Posted November 16, 2013 yep.need mo ilagay yan sa clientside data mo. Quote
gyroguevarra Posted November 16, 2013 Author Posted November 16, 2013 (edited) Di ko makita yung itemdesctable and itemdisplay? Meron lang ako itemslotcounttalbe and itemslottable. Edited November 16, 2013 by gyroguevarra Quote
LuLu Posted November 16, 2013 Posted November 16, 2013 what client do you use? bka iteminfo.lua yan Quote
gyroguevarra Posted November 16, 2013 Author Posted November 16, 2013 2013-06-05Ragexe_patched yan po. Meron lang ako itemslotcounttalbe and itemslottable. Quote
LuLu Posted November 16, 2013 Posted November 16, 2013 yes. it's using iteminfo.lua.add mo dun ung mga clientside data.pra d unknown item no need na ung itemslotcounttalbe and itemslottable. Quote
gyroguevarra Posted November 16, 2013 Author Posted November 16, 2013 Pano po yun sir? Di ko maisip pano sorry ngayon lang po ako nag ganito. Sa itemsinfo.lua na ko mag eedit? Okay na sir. Naayos ko na. TCG shop na lang problem ko sa ngayon. Quote
Patskie Posted November 16, 2013 Posted November 16, 2013 I have made a simple dynamic shop last time. You can use this and post if any error occur : - shop dynamicshop -1,501:20000 prontera,150,150,0 script Dynamic Shop 100,{ callshop "dynamicshop",1; npcshopattach "dynamicshop"; end; OnBuyItem: for ( set .@j, 0; .@j < getarraysize(.items); set .@j, .@j + 2 ) { for ( set .@k, 0; .@k < getarraysize(@bought_nameid); set .@k, .@k + 1 ) { if ( @bought_nameid[.@k] == .items[.@j] ) { if ( checkweight( @bought_nameid[.@k], @bought_quantity[.@k] ) ) { if ( countitem(.currency) < .items[.@j+1] || countitem(.currency) < ( .items[.@j+1] * @bought_quantity[.@k] ) ) dispbottom "You don't have enough " +getitemname(.currency)+ " to purchase this item."; else { delitem .currency, .items[.@j+1] * @bought_quantity[.@k]; getitem @bought_nameid[.@k], @bought_quantity[.@k]; } } else dispbottom "You cannot carry out more items with you"; } } } deletearray @bought_quantity, getarraysize(@bought_quantity); deletearray @bought_nameid, getarraysize(@bought_nameid); end; OnInit: set .currency, 7227; // TCG is used to buy items setarray .items, 4001,5,7227,100; // Usage : <item id>,<price> npcshopitem "dynamicshop",0,0; for ( set .@i, 0; .@i < getarraysize(.items); set .@i, .@i + 2 ) npcshopadditem "dynamicshop",.items[.@i],.items[.@i+1]; end; } Quote
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.