Jump to content

Recommended Posts

Posted

File Name: RentItem2

File Submitter: Emistry

File Submitted: 01 Mar 2012

File Category: Source Modifications

Content Author: Brian

A Script command that extent the usage of

rentitem

it work just like item2 command..but with rental period.

*rentitem2 <item id>,<time>, <identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>;
*rentitem2 "<item name>",<time>, <identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>;

original post link :

http://www.eathena.w...1

I have updated the diff with these changes, and now it works on the current rAthena (r16852).

rentitem2_r16852.diff

Click here to download this file

  • 4 weeks later...
  • 7 months later...
  • 2 weeks later...
Posted (edited)

i found 2 bugs on this command :

1. When an item expired while being equiped,it didn't dissapear, it is just moved to inventory and not equipable. But the item dissapear when character logout or changing map. (Not critical)

2. Adding card to rentitem is abusable, The slotted card can easily extracted by card remover. Player will get "Free" card from this method. (This is absolutely critical)

Hope fixed soon..

Edited by serakh00
Posted

2. Adding card to rentitem is abusable, The slotted card can easily extracted by card remover. Player will get "Free" card from this method. (This is absolutely critical)

Hope fixed soon..

add this diff..

and re-edit your npc to check for the expire date of and item before they can remove card from the item.

http://www.eathena.ws/board/index.php?showtopic=241313&view=findpost&p=1318374

Posted (edited)

i found 2 bugs on this command :

1. When an item expired while being equiped,it didn't dissapear, it is just moved to inventory and not equipable. But the item dissapear when character logout or changing map. (Not critical)

2. Adding card to rentitem is abusable, The slotted card can easily extracted by card remover. Player will get "Free" card from this method. (This is absolutely critical)

Hope fixed soon..

2. in original post,

you can get script command getequipexpiretick

if(getequipexpiretick(<equipment slot>)) close;

Well , Emistry post faster than me lol..

Edited by QQfoolsorellina
Posted (edited)

i got this error when compiled with the diff (getequipexpiretic)

1>d:\installer\kro\client_full\svn area\server 2012 04 10\src\map\script.c(6531): error C2065: 'equip' : undeclared identifier
1>d:\installer\kro\client_full\svn area\server 2012 04 10\src\map\script.c(6531): error C2065: 'equip' : undeclared identifier
1>d:\installer\kro\client_full\svn area\server 2012 04 10\src\map\script.c(6531): error C2109: subscript requires array or pointer type
1>d:\installer\kro\client_full\svn area\server 2012 04 10\src\map\script.c(6538): error C2065: 'equip' : undeclared identifier
1>d:\installer\kro\client_full\svn area\server 2012 04 10\src\map\script.c(6538): error C2109: subscript requires array or pointer type
1>d:\installer\kro\client_full\svn area\server 2012 04 10\src\map\script.c(6538): error C2198: 'pc_checkequip' : too few arguments for call

Edited by serakh00
Posted

in your script.c, can you find this ?

static unsigned int equip[] = {EQP_HEAD_TOP,EQP_ARMOR,EQP_HAND_L,EQP_HAND_R,EQP_GARMENT,EQP_SHOES,EQP_ACC_L,EQP_ACC_R,EQP_HEAD_MID,EQP_HEAD_LOW};

sure there is

Posted (edited)

in your script.c, can you find this ?

static unsigned int equip[] = {EQP_HEAD_TOP,EQP_ARMOR,EQP_HAND_L,EQP_HAND_R,EQP_GARMENT,EQP_SHOES,EQP_ACC_L,EQP_ACC_R,EQP_HEAD_MID,EQP_HEAD_LOW};

sure there is

It must be declared before you use equip[num] , so BUILDIN_FUNC(getequipexpiretick){...} must be put after that array declare

Edited by QQfoolsorellina
Posted

in your script.c, can you find this ?

static unsigned int equip[] = {EQP_HEAD_TOP,EQP_ARMOR,EQP_HAND_L,EQP_HAND_R,EQP_GARMENT,EQP_SHOES,EQP_ACC_L,EQP_ACC_R,EQP_HEAD_MID,EQP_HEAD_LOW};

sure there is

It must be declared before you use equip[num] , so BUILDIN_FUNC(getequipexpiretick){...} must be put after that array declare

OK its work now..

sorry for my fool :P

Thanks QQ and Emistry for fast respone.

  • 3 months later...
  • 6 years later...

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.

  • Recently Browsing   0 members

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