Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // https://github.com/HerculesWS/Hercules/pull/1046
- prontera,155,171,5 script Sample#rental_test 4_PORING,{
- rentitem 5353,1; // Helm of Sun rent for 1 seconds.
- end;
- }
- - script rental_1 -1,{
- OnRentalExpireEvent:
- // do whatever you want here when item expired.
- dispbottom " ---- Item Expired ---- ";
- dispbottom " > @expire_itemid = "+@expire_itemid;
- dispbottom " > @expire_refine = "+@expire_refine;
- dispbottom " > @expire_identify = "+@expire_identify;
- dispbottom " > @expire_attribute = "+@expire_attribute;
- dispbottom " > @expire_bound = "+@expire_bound;
- dispbottom " > @expire_uniqueid = "+@expire_uniqueid;
- dispbottom " > @expire_card[0] = "+getitemname( @expire_card[0] );
- dispbottom " > @expire_card[1] = "+getitemname( @expire_card[1] );
- dispbottom " > @expire_card[2] = "+getitemname( @expire_card[2] );
- dispbottom " > @expire_card[3] = "+getitemname( @expire_card[3] );
- // must clear variables to avoid possible exploit !!
- // especially with multiple NPCs running same label
- @expire_itemid = 0;
- @expire_refine = 0;
- @expire_identify = 0;
- @expire_attribute = 0;
- @expire_bound = 0;
- @expire_uniqueid = 0;
- deletearray @expire_card;
- end;
- }
Advertisement