Kod:
[ITEMDEF i_keg_potion]
NAME=empty potion Keg
ID=i_KEG_WOOD
TYPE=t_script
VALUE={200 300}
WEIGHT=40
RESOURCES=8 i_BOARD, 1 i_BARREL_TAP, 1 i_BARREL_HOOPS
SKILLMAKE=TINKERING 65.0,t_tinker_tools
CATEGORY=Unique Items
SUBSECTION=Tinker
DESCRIPTION=empty potion Keg
ON=@Create
MOREP=0 0 0 //number of potions stored in keg
tag.ID=0 //store BASEID of first potion (i_potion_heal)
ON=@DCLICK
TARGET What potion would you like to fill the keg with?
return 1
ON=@TARGON_ITEM
if (<src.action> != -1 )
SRC.SYSMESSAGE You can't use this yet!
return 1
elseif (<src.targ.type>==t_trash_can)
if ( <src.targ.canseelos>) && (<src.targ.distance> < 3)
MOREP=0 0 0
tag.ID=0
SRC.SOUND=snd_Z_END_LIQUID
SRC.SYSMESSAGE Keg emptied.
NAME=empty potion Keg
color=0
return 1
else
SRC.SYSMESSAGE You are too far away from the barrel.
return 1
endif
elseif <src.targ.baseid>==i_bottle_empty
if (0 >= <morex>)
SRC.SYSMESSAGE You can't use this on a empty keg!
return 1
endif
if ( <src.targ.topobj.uid> != <src.uid> )
SRC.SYSMESSAGE The empty bottle should be in your backpack!
return 1
endif
SRC.SYSMESSAGE You fill an empty bottle.
SOUND=snd_Z_END_LIQUID
SRC.NEWITEM=<tag.ID>
SRC.ACT.ATTR=0
SRC.ACT.TIMER=-1
SRC.ACT.BOUNCE
MOREX=<MOREX> - 1
IF (<MOREX> == 0)
NAME= //set original name
tag.ID=0 //clear potion id
color=0
ELSE
NAME=a <SRC.ACT.NAME> Keg(<MOREX>)
ENDIF
src.targ.CONSUME 1
RETURN 1
elseif (<SRC.TARG.TYPE> != t_potion)
SRC.SYSMESSAGE Thats not a potion!
RETURN 1
elseif <tag.ID> && (<SRC.TARG.BASEID>!=<tag.ID>)
SRC.SYSMESSAGE You can't mix potion types!
RETURN 1
elseif (<MOREX> > 999) //max 1000 potion
SRC.SYSMESSAGE There's no space for further potions!
RETURN 1
elseif (<MOREX>==0)
tag.ID=<SRC.TARG.BASEID> // store potion baseid i_potion_xxx
elseif (<tag.ID>!=<SRC.TARG.BASEID>)
SRC.SYSMESSAGE You can't fill up the keg with this potions!
RETURN 1
endif
MOREX=(<MOREX> + <src.targ.amount>)
NAME=a <SRC.TARG.NAME> Keg(<MOREX>)
SRC.SOUND=snd_Z_END_LIQUID
SRC.SYSMESSAGE Keg Dolu
<SRC.TARG.NAME> Potion!
SRC.NEWITEM=i_bottle_empty
src.act.amount=<src.targ.amount>
SRC.ACT.ATTR=0
SRC.ACT.TIMER=-1
SRC.ACT.BOUNCE
SRC.TARG.REMOVE
color=<src.targ.color>
if <SRC.TARG.color> == 0
if <SRC.TARG.id> == 0f08//blue
color= 058
elseif <SRC.TARG.id> == 0f07//orange
color= 02b
elseif <SRC.TARG.id> == 0f0d//purple
color= 0df
elseif <SRC.TARG.id> == 0f0c//yellow
color= 035
elseif <SRC.TARG.id> == 0f06//black
color= 03d6
elseif <SRC.TARG.id> == 0f0a//green
color= 044
elseif <SRC.TARG.id> == 0f0b//red
color= 021
elseif <SRC.TARG.id> == 0f09//white
color= 0482
endif
endif
return 1
NAME=empty potion Keg
ID=i_KEG_WOOD
TYPE=t_script
VALUE={200 300}
WEIGHT=40
RESOURCES=8 i_BOARD, 1 i_BARREL_TAP, 1 i_BARREL_HOOPS
SKILLMAKE=TINKERING 65.0,t_tinker_tools
CATEGORY=Unique Items
SUBSECTION=Tinker
DESCRIPTION=empty potion Keg
ON=@Create
MOREP=0 0 0 //number of potions stored in keg
tag.ID=0 //store BASEID of first potion (i_potion_heal)
ON=@DCLICK
TARGET What potion would you like to fill the keg with?
return 1
ON=@TARGON_ITEM
if (<src.action> != -1 )
SRC.SYSMESSAGE You can't use this yet!
return 1
elseif (<src.targ.type>==t_trash_can)
if ( <src.targ.canseelos>) && (<src.targ.distance> < 3)
MOREP=0 0 0
tag.ID=0
SRC.SOUND=snd_Z_END_LIQUID
SRC.SYSMESSAGE Keg emptied.
NAME=empty potion Keg
color=0
return 1
else
SRC.SYSMESSAGE You are too far away from the barrel.
return 1
endif
elseif <src.targ.baseid>==i_bottle_empty
if (0 >= <morex>)
SRC.SYSMESSAGE You can't use this on a empty keg!
return 1
endif
if ( <src.targ.topobj.uid> != <src.uid> )
SRC.SYSMESSAGE The empty bottle should be in your backpack!
return 1
endif
SRC.SYSMESSAGE You fill an empty bottle.
SOUND=snd_Z_END_LIQUID
SRC.NEWITEM=<tag.ID>
SRC.ACT.ATTR=0
SRC.ACT.TIMER=-1
SRC.ACT.BOUNCE
MOREX=<MOREX> - 1
IF (<MOREX> == 0)
NAME= //set original name
tag.ID=0 //clear potion id
color=0
ELSE
NAME=a <SRC.ACT.NAME> Keg(<MOREX>)
ENDIF
src.targ.CONSUME 1
RETURN 1
elseif (<SRC.TARG.TYPE> != t_potion)
SRC.SYSMESSAGE Thats not a potion!
RETURN 1
elseif <tag.ID> && (<SRC.TARG.BASEID>!=<tag.ID>)
SRC.SYSMESSAGE You can't mix potion types!
RETURN 1
elseif (<MOREX> > 999) //max 1000 potion
SRC.SYSMESSAGE There's no space for further potions!
RETURN 1
elseif (<MOREX>==0)
tag.ID=<SRC.TARG.BASEID> // store potion baseid i_potion_xxx
elseif (<tag.ID>!=<SRC.TARG.BASEID>)
SRC.SYSMESSAGE You can't fill up the keg with this potions!
RETURN 1
endif
MOREX=(<MOREX> + <src.targ.amount>)
NAME=a <SRC.TARG.NAME> Keg(<MOREX>)
SRC.SOUND=snd_Z_END_LIQUID
SRC.SYSMESSAGE Keg Dolu
<SRC.TARG.NAME> Potion!
SRC.NEWITEM=i_bottle_empty
src.act.amount=<src.targ.amount>
SRC.ACT.ATTR=0
SRC.ACT.TIMER=-1
SRC.ACT.BOUNCE
SRC.TARG.REMOVE
color=<src.targ.color>
if <SRC.TARG.color> == 0
if <SRC.TARG.id> == 0f08//blue
color= 058
elseif <SRC.TARG.id> == 0f07//orange
color= 02b
elseif <SRC.TARG.id> == 0f0d//purple
color= 0df
elseif <SRC.TARG.id> == 0f0c//yellow
color= 035
elseif <SRC.TARG.id> == 0f06//black
color= 03d6
elseif <SRC.TARG.id> == 0f0a//green
color= 044
elseif <SRC.TARG.id> == 0f0b//red
color= 021
elseif <SRC.TARG.id> == 0f09//white
color= 0482
endif
endif
return 1
Yorumlar
Henüz yorum yapılmamıştır.
|
OylamalarOylama :![]()
Üyelerin oylama ortalaması (10 dışında) : Henüz Oylanmamış
Oylar: 0 |
Benzer Sayfalar
| Sayfalar | Yorumlar | Gönderen | Tarih |
| Potion Stone | 0 | Roes | 13-10-2011 |
| Çiftli Heal Potion | 0 | Bayram | 09-02-2010 |
| Shrink Potion | 0 | TheRaskol | 19-09-2009 |
| Alchemy Magical Skill Potion System | 0 | aydin | 13-08-2009 |
| Potion Keg | 0 | TheRaskol | 02-08-2009 |







