Sevdamsın 1
Sevdamsın
Best Studio 1
Best Studio
abdullahaltnbs 1
abdullahaltnbs
Reklam vermek için turkmmo@gmail.com

Rütbe Sistemi :D

  • Konuyu başlatan Konuyu başlatan xRocknRoLL
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 44
  • Görüntüleme Görüntüleme 3K
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Bakın Gençler şimcik questi gördüğünüzde alıntı diceğiniz için ilk önce burdan sizi bir kınama çekicem :D

beğeniyorsanız beğenin beğenmiyorsanız çıkın gidin ulen.

Dip not : Log Database'sine ranksystem oluşturmayı unutmayın ;


PHP:
CREATE TABLE `NewTable` (
`id`  int(30) NOT NULL ,
`username`  varchar(16) NOT NULL ,
`score`  int(20) NOT NULL ,
PRIMARY KEY (`id`)
)
;

içerik :D



PHP:
--[[
    --
    --- I Love It <3
    --- Quest Writer By : TheYoung
    --
]]--
quest ranksystem begin
    state start begin
    
    function query(name,score)
        if(name == '' or name == nil or score == '' or score == nil) then return end 
        mysql_query("INSERT INTO log.ranksystem(id,username,score) VALUES ('"..pc.get_player_id().."','"..name.."','"..score.."') ")
    end
    
    function update(name,score)
        if(name == '' or name == nil or score == '' or score == nil) then return end 
        local check = mysql_query("SELECT * FROM log.ranksystem WHERE username = '"..name.."' ")
        if(table.getn(check) == 0) then return end 
        mysql_query("UPDATE log.ranksystem SET score = '"..score.."' WHERE username = '"..score.."' ")
    end
    
    when kill begin
        if(npc.is_pc()) then
            if(pc.getqf('kill') == 0) then
                pc.setqf('kill',pc.getqf('kill')+1)
                setskin(NOWINDOW)
                chat('Hey merhaba sen rütbe sisteminde yeni gözüküyorsun.. ')
                chat('sana ufak bir bilgi vericeğim.. her +50 puanda bir sıra yükselebilirsin.. ')
                chat('şuan ki paunın : '..pc.getqf('kill'))
            elseif(pc.getqf('kill') == 50) then
                pc.setqf('kill',pc.getqf('kill')+1)
                setskin(NOWINDOW)
                chat(' [K1] Rütbesine eriştin. çok iyi ilerliyorsun devam et.. böyle gidersen 1.olma fırsatını ')
                chat('yakalıcaksın.. ')
                ranksystem.update(pc.get_name(),pc.getqf('kill'))
            elseif(pc.getqf('kill') == 150) then
                pc.setqf('kill',pc.getqf('kill')+1)
                setskin(NOWINDOW)
                chat('harika gidiyorsun şuan [K2] rütbesine eriştin.. ')
                chat('hadi ! ')
                ranksystem.update(pc.get_name(),pc.getqf('kill'))
            elseif(pc.getqf('kill') == 250) then
                pc.setqf('kill',pc.getqf('kill')+1)
                setskin(NOWINDOW)
                chat('harika gidiyorsun şuan [K3] rütbesine eriştin.. ')
                chat('daha fazlasını hakedebilirsin.. ')
                ranksystem.update(pc.get_name(),pc.getqf('kill'))
            else
                pc.setqf('kill',pc.getqf('kill')+1)
                ranksystem.update(pc.get_name(),pc.getqf('kill'))                
                end
            end
        end
        
    when 11000.chat.'Rütbe Sıralaması ' or 11000.chat.'Rütbe Sıralaması ' or 11000.chat.'Rütbe Sıralaması ' begin
    say_title(mob_name(npc.get_race()))
    say('')
    ---
    local g = mysql_query("SELECT * FROM log.ranksystem ORDER BY score")
    if(table.getn(g) < 1) then return end 
    table.foreachi(g,
        function(n,p)
            say(n..'. '..g.username[n]..' '..g.score[n])
        end)
        end
    end
end

​

Konu Güzel Teşekkür Ederim Ama Anlatım Bicimin beğenmedim " Ulen "
" beğenmiyorsanız çıkın gidin "

felan Bu Forumda istenmeyen kelimeler. bence bir daha kullanma ve bnce bir yönetici vs. görmeden değiştir. sana tavsiyem. ama böle ulen falan konular acarsan geren adminlerimiz gerek moderatörlerimiz beğenmeyebilir. :)
 
Bakın Gençler şimcik questi gördüğünüzde alıntı diceğiniz için ilk önce burdan sizi bir kınama çekicem :D

beğeniyorsanız beğenin beğenmiyorsanız çıkın gidin ulen.

Dip not : Log Database'sine ranksystem oluşturmayı unutmayın ;


PHP:
CREATE TABLE `NewTable` (
`id`  int(30) NOT NULL ,
`username`  varchar(16) NOT NULL ,
`score`  int(20) NOT NULL ,
PRIMARY KEY (`id`)
)
;

içerik :D



PHP:
--[[
    --
    --- I Love It <3
    --- Quest Writer By : TheYoung
    --
]]--
quest ranksystem begin
    state start begin
    
    function query(name,score)
        if(name == '' or name == nil or score == '' or score == nil) then return end 
        mysql_query("INSERT INTO log.ranksystem(id,username,score) VALUES ('"..pc.get_player_id().."','"..name.."','"..score.."') ")
    end
    
    function update(name,score)
        if(name == '' or name == nil or score == '' or score == nil) then return end 
        local check = mysql_query("SELECT * FROM log.ranksystem WHERE username = '"..name.."' ")
        if(table.getn(check) == 0) then return end 
        mysql_query("UPDATE log.ranksystem SET score = '"..score.."' WHERE username = '"..score.."' ")
    end
    
    when kill begin
        if(npc.is_pc()) then
            if(pc.getqf('kill') == 0) then
                pc.setqf('kill',pc.getqf('kill')+1)
                setskin(NOWINDOW)
                chat('Hey merhaba sen rütbe sisteminde yeni gözüküyorsun.. ')
                chat('sana ufak bir bilgi vericeğim.. her +50 puanda bir sıra yükselebilirsin.. ')
                chat('şuan ki paunın : '..pc.getqf('kill'))
            elseif(pc.getqf('kill') == 50) then
                pc.setqf('kill',pc.getqf('kill')+1)
                setskin(NOWINDOW)
                chat(' [K1] Rütbesine eriştin. çok iyi ilerliyorsun devam et.. böyle gidersen 1.olma fırsatını ')
                chat('yakalıcaksın.. ')
                ranksystem.update(pc.get_name(),pc.getqf('kill'))
            elseif(pc.getqf('kill') == 150) then
                pc.setqf('kill',pc.getqf('kill')+1)
                setskin(NOWINDOW)
                chat('harika gidiyorsun şuan [K2] rütbesine eriştin.. ')
                chat('hadi ! ')
                ranksystem.update(pc.get_name(),pc.getqf('kill'))
            elseif(pc.getqf('kill') == 250) then
                pc.setqf('kill',pc.getqf('kill')+1)
                setskin(NOWINDOW)
                chat('harika gidiyorsun şuan [K3] rütbesine eriştin.. ')
                chat('daha fazlasını hakedebilirsin.. ')
                ranksystem.update(pc.get_name(),pc.getqf('kill'))
            else
                pc.setqf('kill',pc.getqf('kill')+1)
                ranksystem.update(pc.get_name(),pc.getqf('kill'))                
                end
            end
        end
        
    when 11000.chat.'Rütbe Sıralaması ' or 11000.chat.'Rütbe Sıralaması ' or 11000.chat.'Rütbe Sıralaması ' begin
    say_title(mob_name(npc.get_race()))
    say('')
    ---
    local g = mysql_query("SELECT * FROM log.ranksystem ORDER BY score")
    if(table.getn(g) < 1) then return end 
    table.foreachi(g,
        function(n,p)
            say(n..'. '..g.username[n]..' '..g.score[n])
        end)
        end
    end
end

​
bebeye bak bi halt yediğini sanmış :) :)

güya paylaşım yapmayacakmışta bilmem ne reklamcı velet seni
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

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

Geri
Üst