Jump to content

Paano ba gumawa ng rental box


Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  398
  • Reputation:   131
  • Joined:  11/10/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   1
  • Joined:  09/17/13
  • Last Seen:  

Pano po ba yung script ng box? Newbie pa lang po ako

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  398
  • Reputation:   131
  • Joined:  11/10/12
  • Last Seen:  

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 expire
in seconds and be automatically deleted. When receiving a rental item,
the character will receive a message in their chat window. The character will
also receive warning messages in their chat window before the item disappears.

This command can not be used to rent stackable items. Rental items cannot be
dropped, 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 by LuLu
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   1
  • Joined:  09/17/13
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

@reloaditemdb

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   1
  • Joined:  09/17/13
  • Last Seen:  

Okay na po pero unknown item. Pano po ayusin yung unknown item?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   3
  • Joined:  07/04/13
  • Last Seen:  

hha edi punta ka sa itemdesctable,itemnum....,iteemdisplay.... itemslottable 



slotcountable ppala

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  398
  • Reputation:   131
  • Joined:  11/10/12
  • Last Seen:  

yep.need mo ilagay yan sa clientside data mo.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Edit your client files 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   1
  • Joined:  09/17/13
  • Last Seen:  

Di ko makita yung itemdesctable and itemdisplay? Meron lang ako itemslotcounttalbe and itemslottable.

Edited by gyroguevarra
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  398
  • Reputation:   131
  • Joined:  11/10/12
  • Last Seen:  

what client do you use? bka iteminfo.lua yan

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   1
  • Joined:  09/17/13
  • Last Seen:  

2013-06-05Ragexe_patched yan po. Meron lang ako itemslotcounttalbe and itemslottable.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  398
  • Reputation:   131
  • Joined:  11/10/12
  • Last Seen:  

yes. it's using iteminfo.lua.add mo dun ung mga clientside data.pra d unknown item

no need na ung itemslotcounttalbe and itemslottable.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   1
  • Joined:  09/17/13
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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;
}
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
Reply to this topic...

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