Bi menu yazdm online stafflarn görünmesi için ne yazıyorduk?

örn:Guilds Sayisi: <serv.guilds> gibi...
Members
-2.9

[plevel 1]
staff
[Function staff]
src.sysmessage Oyunda<eval <VAR.PLEVEL2>+<VAR.PLEVEL3>+<VAR.PLEVEL4>+<VAR.PLEVEL5>+<VAR.PLEVEL6>> Yetkili Var
return 1
endif
 
[plevel 1]
staff

[function staffsay]
if (<account.plevel>==2)
VAR.GMS=<VAR.GMS>+1
elseif (<account.plevel>==3)
VAR.GMS=<VAR.GMS>+1
elseif (<account.plevel>==4)
VAR.GMS=<VAR.GMS>+1
elseif (<account.plevel>==5)
VAR.GMS=<VAR.GMS>+1
elseif (<account.plevel>==6)
VAR.GMS=<VAR.GMS>+1
elseif (<account.plevel>==7)
VAR.GMS=<VAR.GMS>+1
endif
return 1

[Function staff]
VAR.PLEVEL2=0
VAR.PLEVEL3=0
VAR.PLEVEL4=0
VAR.PLEVEL5=0
VAR.PLEVEL6=0
VAR.PLEVEL7=0
VAR.GMS=0
serv.allclients staffsay
dialog d_xxxx

Dialogda İse Sole Gosterceksin <eval (<VAR.GMS>>
help menusunde online npcler görünmesi için ne yazıyorduk?? <serv.npcs> mi?
Novice
-14.8
56b ise

<serv.chars>

55i ve üstü ise
<serv.npcs>
Scriptler çok uzatılarak yazılmış dahada kısa hale getirebilir . En mantıklı ve kısa çözüm yolu olaraktan staffların login ve logoutunu

On=@Login
var.onlinegm +=1



On=@logout
var.onlinegm +=1


tarzında ayarladıktan sonra var.onlinegm yi kullanmak olur.

Bu konu unknow tarafından düzenlendi(2008-05-09 20:37, 15 yıl önce)

Üye Ol veya Giriş Yap

Bu forum başlığına mesaj atmak istiyorsanız hemen üye olun veya giriş yapın.