Viewing Item

#22611: Packed Envelope

Item ID 22611 For Sale No
Identifier Packing_Envelope Credit Price Not For Sale
Name Packed Envelope Type Usable
NPC Buy 10 Weight 1
NPC Sell 5 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 .@rnd = rand(1,10);

2 if (.@rnd == 1)

3 sc_start SC_PACKING_ENVELOPE1,30000,33; // +atk

4 else if (.@rnd == 2)

5 sc_start SC_PACKING_ENVELOPE2,30000,33; // +matk

6 else if (.@rnd == 3)

7 sc_start SC_PACKING_ENVELOPE3,30000,3; // +hp%

8 else if (.@rnd == 4)

9 sc_start SC_PACKING_ENVELOPE4,30000,3; // +sp%

10 else if (.@rnd == 5)

11 sc_start SC_PACKING_ENVELOPE5,30000,33; // +flee

12 else if (.@rnd == 6)

13 sc_start SC_PACKING_ENVELOPE6,30000,3; // +aspd

14 else if (.@rnd == 7)

15 sc_start SC_PACKING_ENVELOPE7,30000,33; // +def

16 else if (.@rnd == 8)

17 sc_start SC_PACKING_ENVELOPE8,30000,33; // +mdef

18 else if (.@rnd == 9)

19 sc_start SC_PACKING_ENVELOPE9,30000,33; // +crit

20 else

21 sc_start SC_PACKING_ENVELOPE10,30000,33; // +hit

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

23 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",

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

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

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

27 .@count ++;

28 }

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

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

31 end;

32 }

33 if(.@count < 1)

34 if (getequipid(EQI_HEAD_MID) == 15385)

35 warp "verus04",115,243;

36 else

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

38 /* todo check map x y */

Equip Script None
Unequip Script None