Viewing Item

#11515: Coconut

Item ID 11515 For Sale No
Identifier Coconut Credit Price Not For Sale
Name Coconut Type Healing
NPC Buy 1,500 Weight 12
NPC Sell 750 Weapon Level 0
Range 0 Defense 0
Slots 0 Refineable No
Attack 0 Min Equip Level None
MATK 0 Max Equip Level None
Equip Locations None
Equip Upper None
Equippable Jobs None
Equip Gender Both (Male and Female)
Trade restriction None
Item Use Script

1 itemheal rand(300,400),0;

2 getmapxy(.map$,.x,.y,BL_PC);

3 setarray .oldpowmap2$[0],"prt_vilg01","prt_vilg02","pro_fild00","dungeon000","dungeon001","gef_vilg00","gef_vilg01","moc_dugn01","moc_dugn02","mrc_fild01","mrc_fild02","mrc_fild03","mrc_fild04","pro_fild04","pro_fild05","prt_dugn01",

4 "prt_dugn02","prt_dugn03","prt_intr01","prt_intr02","moc_vilg00","moc_vilg01","moc_vilg02","ars_fild36","ars_fild25","ars_fild50","pro_fild01","prt_dugn00";

5 for(.@i=0;.@i<getarraysize(.oldpowmap2$);.@i++){

6 if(.oldpowmap2$[.@i] == .map$)

7 .@count ++;

8 }

9 if (compare(.map$,"edda")){

10 unittalk 0,""+((!#language)?"No puedes usar este item en el pasado":"You can't use this item from the past")+"!",bc_self;

11 end;

12 }

13 if(.@count < 1)

14 if (getequipid(EQI_HEAD_MID) == 15385)

15 warp "dali",113,82;

16 else

17 unittalk 0,""+((!#language)?"No puedes usar este item en el pasado":"You can't use this item from the past")+"!",bc_self;

18 /* todo check map x y */

Equip Script None
Unequip Script None