TuZaKK 1
TuZaKK
Reklam vermek için turkmmo@gmail.com

Fonksiyon

  • Konuyu başlatan Konuyu başlatan xRocknRoLL
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 9
  • Görüntüleme Görüntüleme 956
Bir çok arkadaş benden quest yazmamı istiyor genellikle affect.add_collect() oluyor. nedense bende onlar için ufak bir türlü fonksiyon hazırladım alın tepe tepe kullanın istiyen eklemeler yapabilir. ;

PHP:
function add_affect(typ,total,times)
    if(typ == "1") then -- STR
        affect.add_collect(apply.STR,total,times)
    elseif(typ == "2") then -- INT
        affect.add_collect(apply.INT,total,times)
    elseif(typ == "3") then -- CON
        affect.add_collect(apply.CON,total,times)
    elseif(typ == "4") then -- MAX_SP
        affect.add_collect(apply.MAX_SP,total,times)
    elseif(typ == "5") then -- MAX_HP
        affect.add_collect(apply.MAX_HP,total,times)
    elseif(typ == "6") then -- DEX
        affect.add_collect(apply.DEX,total,times)
    elseif(typ == "7") then -- ATT_SPEED
        affect.add_collect(apply.ATT_SPEED,total,times)
    elseif(typ == "8") then -- MOV_SPEED
        affect.add_collect(apply.MOV_SPEED,total,times)
    elseif(typ == "9") then -- CAST_SPEED
        affect.add_collect(apply.CAST_SPEED,total,times)
    elseif(typ == "10") then -- HP_REGEN
        affect.add_collect(apply.HP_REGEN,total,times)
    elseif(typ == "11") then -- SP_REGEN
        affect.add_collect(apply.SP_REGEN,total,times)
    elseif(typ == "12") then -- POISON_PCT
        affect.add_collect(apply.POISON_PCT,total,times)
    elseif(typ == "13") then -- STUN_PCT
        affect.add_collect(apply.STUN_PCT,total,times)
    elseif(typ == "14") then -- SLOW_PCT
        affect.add_collect(apply.SLOW_PCT,total,times)
    elseif(typ == "15") then -- CRITICAL_PCT
        affect.add_collect(apply.CRITICAL_PCT,total,times)
    elseif(typ == "16") then -- PENETRATE_PCT
        affect.add_collect(apply.PENETRATE_PCT,total,times)
    elseif(typ == "17") then -- ATTBONUS_HUMAN
        affect.add_collect(apply.ATTBONUS_HUMAN,total,times)
        end
    end


questlib.lua ve quest_functions ekleyin.

Kullanışı ;

add_affect("type","miktar","zaman") = add_affect("1","50",60*60)

verdiğim ilk olarak bu kişiye +50 STR yükle

bu kadarı sizin için yeter iyi forumlar.

​
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst