Jump to content
Forumu Destekleyenlere Katılın ×
Paticik Forumları
2000 lerden beri faal olan, çok şukela bir paylaşım platformuyuz. Hoşgeldiniz.

Socketing system


Jenceslav

Öne çıkan mesajlar

CODE
[function runewordcheck]
if (strmatch(>).tag.socketword?>,"(IRE)")) && (>).ISARMOR?>)
finduid(>).events +t_ire
finduid(>).tag.socketdes_4="+15 to all stats"
finduid(>).tag.socketdes_5="+10 all resistances"
src.sysmessage "The >).name?> has transformed."
finduid(>).name ">).name?> [Ire]"
finduid(>).tag.socketword=""
finduid(>).tag.socket="0"
finduid(>).tag.socketletter_1=""
finduid(>).tag.socketletter_2=""
finduid(>).tag.socketletter_3=""
finduid(>).tag.socketletter_4=""
endif

CODE
[function runemaker]
;;;;;> is the rune letter
;;;;;> is the players uid
;;;;;> toggles number of events
;;;;;> socket description
tag.socketsused=( + 1)
tag.socket=( - 1)
tag.socketletter_=?>
tag.socketdes_="?>"
tag.socketword=()
finduid(>).sysmessage "The was socketed with a ?> rune."
finduid(>).findid(i_?>).remove
if !(> = 1)
events +>rune
else
if || (=t_clothing)
events +>runea
else
events +>rune
endif
else
endif

[function makesocket]
IF (==I_CHAINMAIL_COIF) || (==I_LEATHER_GORGET) || (==I_STUDDED_GORGET) || (==I_PLATEMAIL_GORGET) || (==I_BANDANA) || (==I_SASH) || (==I_SKULL_CAP) || (==I_SANDALS) || (==I_SHOES_PLAIN) || (==I_CAP) || (==I_BONNET) || (==I_BANDANA)
TAG.SOCKET=
ELSEIF (==I_DAGGER) || (==I_CLUB) || (==I_KNIFE_BUTCHER) || (==I_KNIFE_SKINNING) || (==I_CLEAVER_MEAT) || (==I_WOOD_MACE) || (==I_WOOD_SWORD) || (==I_HATCHET) || (==I_PICKAXE) || (==I_HAMMER_SMITH) || (==I_BONE_HARVESTER) || (==I_BOOTS_THIGH) || (==I_HAT_FLOPPY) || (==I_HAT_WIDE_BRIM) || (==I_HAT_STRAW_TALL) || (==I_HAT_STRAW) || (==I_HAT_FEATHER) || (==I_HAT_TRICORNE) || (==I_HAT_JESTER)
TAG.SOCKET=
ELSEIF (==I_CUTLASS) || (==I_SPEAR_SHORT) || (==I_KATANA) || (==I_SCIMITAR) || (==I_MACE) || (==I_AXE) || (==I_PITCHFORK) || (==I_LEATHER_SLEEVES) || (==I_STUDDED_SLEEVES) || (==I_RINGMAIL_SLEEVES) || (==I_PLATEMAIL_ARMS) || (==I_BONE_ARMS) || (==I_KRYSS) || (==I_HAMMER_PICK) || (==I_WAR_FORK) || (==I_MACE_WAR) || (==I_AXE_WAR)
TAG.SOCKET=
ELSEIF (==I_SWORD_BROAD) || (==I_SWORD_LONG) || (==I_SWORD_LONG_B) || (==I_AXE_BATTLE)
TAG.SOCKET=
ELSE
TAG.SOCKET=
ENDIF

CODE
[itemdef i_a]
id=i_gem_ruby
name="A"
value=2000
weight=1

on=@create
color=0482
tag.prefixdes_0="Armor and Weapon Effects"
tag.prefixdes_1="+10 melee block chance in an item"

on=@userdclick
Target Socket which item?
return 1

on=@targon_item
if !(==-1)
return 1
else
if safe( > 0)
src.targ.runemaker("A",,0,"+10 melee block chance")
else
src.sysmessage "This item holds no areas of enhancement."
endif
runewordcheck()
return 1
endif

[itemdef i_b]
id=i_gem_ruby
name="B"
value=2000
weight=1

on=@create
color=0482
tag.prefixdes_0="Weapon Effects"
tag.prefixdes_1="+5% mana leech"
tag.prefixdes_0="Armor Effects"
tag.prefixdes_1="+25 max stam"

on=@userdclick
Target Socket which item?
return 1

on=@targon_item
if !(==-1)
return 1
else
if safe( > 0)
src.targ.runemaker("B",,1,","+25 max stam","+5% mana leech")?>)
else
src.sysmessage "This item holds no areas of enhancement."
endif
runewordcheck()
return 1
endif

[itemdef i_c]
id=i_gem_ruby
name="C"
value=2000
weight=1

on=@create
color=0482
tag.prefixdes_0="Armor and Weapon Effects"
tag.prefixdes_1="+10 spell block chance in an item"

on=@userdclick
Target Socket which item?
return 1

on=@targon_item
if !(==-1)
return 1
else
if safe( > 0)
src.targ.runemaker("C",,0
Link to comment
Sosyal ağlarda paylaş

×
×
  • Yeni Oluştur...