Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted June 27, 2008 02:28 AM |
|
|
help for script
I have here a script which does the following: visiting an event ressurect the azure dragons defeated at x/y and replace the mithril pile already took with a new one. My problem is that the new mithril pile comes by 5 units each time. And I would need only one unit. Any help where this is located please?
ZVSE
** Valley Of Mithril script
!#VRv80:S1; [# of dragons]
!?LE21/21/0; [local event trigger]
!!OB22/21/0:T?y1U?y2; [get type/subtype where dragons are]
!!VRv80&y1<>54:*2; [double dragons]
!!UN&y1<>54:I22/21/0/54/132; [place new dragons]
!!MO22/21/0&y1<>54:Gv80; [set # of dragons]
!!VRv30:C23; [mithril x]
!!VRv50:C21; [mithril y]
!!DO3/0/14/1; [refill all mithril squares that are empty]
!?FU3; [handle replacing one square of mithril, index x16]
!!VRv81:Sx16;
!!VRv81:+30;
!!VRv81:Svv81; [now v81 is mithril x]
!!VRv82:Sx16;
!!VRv82:+50;
!!VRv82:Svv82; [now v82 is mithril y]
!!VRv83:S0; [mithril level]
!!OB81:T?y1U?y2; [get type/subtype where mithril goes]
!!UN&y1<>79:Iv81/v82/0/79/7; [place new mithril]
|
|