1 | //by Lupus. |
---|
2 | // SVN TRUNK 9940+ only |
---|
3 | |
---|
4 | //setiteminfo(itemID,n,Value), where n |
---|
5 | // 0 value_buy; |
---|
6 | // 1 value_sell; |
---|
7 | // 2 type; |
---|
8 | // 3 maxchance = Max drop chance of this item e.g. 1 = 0.01% , etc.. |
---|
9 | // if = 0, then monsters don't drop it at all (rare or a quest item) |
---|
10 | // if = 10000, then this item is sold in NPC shops only |
---|
11 | // 4 sex; |
---|
12 | // 5 equip; |
---|
13 | // 6 weight; |
---|
14 | // 7 atk; |
---|
15 | // 8 def; |
---|
16 | // 9 range; |
---|
17 | // 10 slot; |
---|
18 | // 11 look; |
---|
19 | // 12 elv; |
---|
20 | // 13 wlv; |
---|
21 | |
---|
22 | prontera,164,161,5 script Lupus 1013,{ |
---|
23 | menu "Make Knife[3] Edible",M_1, |
---|
24 | "Make Apple Equippable",M_2, |
---|
25 | "Edible Knife = Full SP",M_3, |
---|
26 | "Knife = Weapon + 3 Notes",M_4; |
---|
27 | close; |
---|
28 | |
---|
29 | M_1: |
---|
30 | //WORKS! |
---|
31 | mes "Ok. We Made Knife[3] Edible"; |
---|
32 | setiteminfo(1201,2,0); //type = 0 : potion |
---|
33 | setitemscript(1201,"{dispbottom \"* You used Knife[3]\";}"); |
---|
34 | close; |
---|
35 | |
---|
36 | M_2: |
---|
37 | //WORKS! |
---|
38 | mes "Ok. We Made Apple Equippable"; |
---|
39 | //item type -> headgear |
---|
40 | setiteminfo(512,2,5); //type = 5 |
---|
41 | //where to equip to |
---|
42 | setiteminfo(512,5,512); //equip = 512 |
---|
43 | //set as headgear location |
---|
44 | setiteminfo(512,11,256); //loc = 256 |
---|
45 | //set Headgear Sprite ID |
---|
46 | setiteminfo(512,14,85); //view id = 85 |
---|
47 | |
---|
48 | setitemscript(512,"{dispbottom \"* Other item's changed\";}",0); |
---|
49 | setitemscript(512,"{dispbottom \"* Equipped\";}",1); |
---|
50 | setitemscript(512,"{dispbottom \"* Unequipped\";}",2); |
---|
51 | close; |
---|
52 | |
---|
53 | M_3: |
---|
54 | //WORKS! |
---|
55 | mes "Ok. Now Edible Knife[3] restores your SP"; |
---|
56 | setitemscript(1201,2,0); |
---|
57 | setitemscript(1201,"{dispbottom \"* You ate Knife[3] + Full SP\"; percentheal 0,100;}"); |
---|
58 | close; |
---|
59 | |
---|
60 | M_4: |
---|
61 | //WORKS! |
---|
62 | mes "Ok. We Made Knife... a weapon. But added 3 notes."; |
---|
63 | setiteminfo(1201,2,4); //type = 4 : weapon again |
---|
64 | setitemscript(1201,"{dispbottom \"* 1 Used\";}",0); |
---|
65 | setitemscript(1201,"{dispbottom \"* 2 Equipped\";}",1); |
---|
66 | setitemscript(1201,"{dispbottom \"* 3 Unequipped\";}",2); |
---|
67 | close; |
---|
68 | |
---|
69 | } |
---|