SphereCommunity
Pelerin Sistem [Cape System] - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Submissions (/Forum-Script-Submissions)
+--- Thread: Pelerin Sistem [Cape System] (/Thread-Pelerin-Sistem-Cape-System)



Pelerin Sistem [Cape System] - [Nores] - 06-09-2014 01:48 AM

//[Pelerin System Scripting - Cape System]
//[History 16 August 2009]
//[Scripting Coder = [Nores]

Code:
[events e_puan]
on=@click
if (<eval <tag0.Puan>> >= 120)
message @0940 [Most Powerful]
elseif (<eval <tag0.Puan>> >= 90)
message @0940 [Excessive Talented]
elseif (<eval <tag0.puan>> >= 60)
message @0940 [More Talented]
elseif (<eval <tag0.Puan>> >= 30)
message @0940 [Dexterous]
else
message @0940 [Incompetent]
endif

on=@kill
if (<argo.fame> <5000)
src.sysmessage @0481,,1 <act.name>'den Puan Alamadiniz.
else
src.tag.Puan +=1
src.sysmessage @0481,,1 <act.name>'den 1 Puan Aldiniz.
src.sysmessage @0481,,1 Toplam Puaniniz: [<eval <tag0.Puan>>]
src.newitem i_bilet,1000
src.act.bounce
endif

on=@death
src.tag.puan -=1
src.sysmessage @0481,,1 Puan Kaybettiniz.
src.sysmessage @0481,,1 Toplam Puaniniz: [<eval <tag0.Puan>>]

[function puan]
src.sysmessage @0481,,1 Puaniniz: [<eval <tag0.Puan>>]

[plevel 1]
puan

endif

///////////////////////PELERINLER///////////////////////////////////////

[itemdef i_incompetent_cape]
ID=i_cape
NAME=[Incompetent Cape]
Type=t_clothing

on=@create
COLOR=0814
HITPOINTS=100


ON=@CLICK
Message @0940,,1 [Incompetent Cape]
message @0481,,1 [3 Saniyede +1 Hits]
return 1

ON=@EQUIP
src.sayu [Incompetent Power Loading]
src.sysmessage @07a1 Incompetent Yetengi Sizinle.
LINK=<SRC.UID>
TIMER=2
RETURN 0

on=@TIMER
IF (<LINK.hits><<LINK.str>)
LINK.hits=<LINK.hits>+1
CONT.EFFECT=3,i_fx_sparkle_2,10,20,10
TIMER=5
else
TIMER=0
ENDIF
RETURN 1

on=@unequip
src.sysmessage @07a1 Incompetent Yetenegini Yitirdiniz.
LINK=04FFFFFFF
timer=-1
RETURN 0

endif

//////////////////////////////Dextereus////////////////////////////

[itemdef i_Dextereus_cape]
Defname i_dc
ID=i_cape
NAME=[Dextereus Cape]
Type=t_clothing

on=@create
COLOR=07a1
HITPOINTS=100


ON=@CLICK
Message @0940,,1 [Dextereus Cape]
message @0481,,1 [3 Saniyede +2 Hits]
return 1

ON=@EQUIP
src.sayu [Dextereus Power Loading]
src.sysmessage @07a1 Dextereus Yetengi Sizinle.
if (<eval <src.tag0.Puan>> < 30)
src.sysmessage Puaniniz 30'dan Buyuk Olmasi Gerek.
unequip
else
LINK=<SRC.UID>
TIMER=2
RETURN 0
endif

on=@TIMER
IF (<LINK.hits><<LINK.str>)
LINK.hits=<LINK.hits>+2
CONT.EFFECT=3,i_fx_sparkle_2,10,20,10
TIMER=5
else
TIMER=0
ENDIF
RETURN 1

on=@unequip
src.sysmessage @07a1 Dextereus Yetenegini Yitirdiniz.
LINK=04FFFFFFF
timer=-1

/////////////////////////////////More Talented//////////////////////////////////

[itemdef i_More_Talented_cape]
Defname i_mtc
ID=i_cape
NAME=[More Talented Cape]
Type=t_clothing

on=@create
COLOR=0854
HITPOINTS=100


ON=@CLICK
Message @0940,,1 [More Talented Cape]
message @0481,,1 [3 Saniyede +3 Hits]
return 1

ON=@EQUIP
src.sayu [More Talented Power Loading]
src.sysmessage @07a1 More Talented Yetengi Sizinle.
if (<eval <src.tag0.Puan>> < 60)
src.sysmessage Puaniniz 60'dan Buyuk Olmasi Gerek.
unequip
else
LINK=<SRC.UID>
TIMER=2
endif

on=@TIMER
IF (<LINK.hits><<LINK.str>)
LINK.hits=<LINK.hits>+3
CONT.EFFECT=3,i_fx_sparkle_2,10,20,10
TIMER=5
else
TIMER=0
ENDIF
RETURN 1

on=@unequip
src.sysmessage @07a1 More Talented Yetenegini Yitirdiniz.
LINK=04FFFFFFF
timer=-1

///////////////////////////Excessive Talented//////////////////

[itemdef i_Excessive_Talented_cape]
Defname i_etc
ID=i_cape
NAME=[Excessive Talented Cape]
Type=t_clothing

on=@create
COLOR=0484
HITPOINTS=100


ON=@CLICK
Message @0940,,1 [Excessive Talented Cape]
message @0481,,1 [3 Saniyede +4 Hits]
return 1

ON=@EQUIP
src.sayu [Excessive Talented Power Loading]
src.sysmessage @07a1 Excessive Talented Yetengi Sizinle.
if (<eval <src.tag0.Puan>> < 90)
src.sysmessage Puaniniz 90'dan Buyuk Olmasi Gerek.
unequip
else
LINK=<SRC.UID>
TIMER=2
endif

on=@TIMER
IF (<LINK.hits><<LINK.str>)
LINK.hits=<LINK.hits>+4
CONT.EFFECT=3,i_fx_sparkle_2,10,20,10
TIMER=5
else
TIMER=0
ENDIF
RETURN 1

on=@unequip
src.sysmessage @07a1 Excessive Talented Yetenegini Yitirdiniz.
LINK=04FFFFFFF
timer=-1

//////////////////////////////Most Powerful////////////////////////////////


[itemdef i_Most_Powerful_cape]
Defname i_mpc
ID=i_cape
NAME=[Most Powerful Cape]
Type=t_clothing

on=@create
COLOR=05a23
HITPOINTS=100


ON=@CLICK
Message @0940,,1 [Most Powerful Cape]
message @0481,,1 [3 Saniyede +5 Hits]
return 1

ON=@EQUIP
src.sayu [Most Powerful Power Loading]
src.sysmessage @07a1 Most Powerful Yetengi Sizinle.
if (<eval <src.tag0.Puan>> < 120)
src.sysmessage Puaniniz 120'den Buyuk Olmasi Gerek.
unequip
else
LINK=<SRC.UID>
TIMER=2
endif

on=@TIMER
IF (<LINK.hits><<LINK.str>)
LINK.hits=<LINK.hits>+5
CONT.EFFECT=3,i_fx_sparkle_2,10,20,10
TIMER=5
else
TIMER=0
ENDIF
RETURN 1

on=@unequip
src.sysmessage @07a1 Most Powerful Yetenegini Yitirdiniz.
LINK=04FFFFFFF
timer=-1

[eof]

Footnote; This is code rank system with related extra health will gain. if cape is wear. Bad english for, sorry !


RE: Pelerin Sistem [Cape System] - JohnVeritas - 06-12-2014 06:05 AM

Code:
IF (<<LINK.hits> + 4> > <LINK.str>)
LINK.hits=<LINK.str>
else
LINK.hits=<LINK.hits>+(Value)
...
...
..

And cloak will not heal over str.


RE: Pelerin Sistem [Cape System] - Extreme - 06-12-2014 06:08 AM

PHP Code:
LINK.HITS += <VALUE YOU WANT>
IF <
LINK.HITS> > <LINK.STR>
 
LINK.HITS <LINK.STR>
ENDIF