• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Request [DNT] Script

Eclipso

Mapper
Joined
Apr 12, 2017
Messages
96
Reaction score
6
hey guys i need [DNT] script same as marlboro-war that's which gives second promotion and it also gives [dnt] before ur name
tfs 0.3.6 ver:8.6
thanks alot :D
 
Last edited:
with promote vocation?
Post automatically merged:

local config = {
[1] = {5}, -- sorcerer
[2] = {6}, -- druid
[3] = {7}, -- paladin
[4] = {8}, -- knight
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local v = config[getPlayerVocation(cid)]
if v then
doPlayerSetVocation(cid, v[1])
doCreatureSay(cid, "You are now an "..getPlayerVocationName(cid).."!", TALKTYPE_ORANGE_1)
db.executeQuery("UPDATE players SET name = '[DNT] "..getCreatureName(cid).."' WHERE id = "..getPlayerGUID(cid)..";")
doPlayerSendTextMessage(cid,25,"Trankilo no Pasara Nada.")
addEvent(doRemoveCreature, 5*1000, cid, true)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,"Tu Ya Eres DNT.")
end
return true
end
 
with promote vocation?
Post automatically merged:

local config = {
[1] = {5}, -- sorcerer
[2] = {6}, -- druid
[3] = {7}, -- paladin
[4] = {8}, -- knight
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local v = config[getPlayerVocation(cid)]
if v then
doPlayerSetVocation(cid, v[1])
doCreatureSay(cid, "You are now an "..getPlayerVocationName(cid).."!", TALKTYPE_ORANGE_1)
db.executeQuery("UPDATE players SET name = '[DNT] "..getCreatureName(cid).."' WHERE id = "..getPlayerGUID(cid)..";")
doPlayerSendTextMessage(cid,25,"Trankilo no Pasara Nada.")
addEvent(doRemoveCreature, 5*1000, cid, true)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,"Tu Ya Eres DNT.")
end
return true
end

You are fast!
 
Lua:
local vocCount = 4
local level = 20

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerVocation(cid) > vocCount then
        doPlayerSendCancel(cid, "Tu Ya Eres DNT.")
        return false
    end
    
    if getPlayerLevel(cid) < level then
        doPlayerSendCancel(cid, "You need level 20 to promote.")
        return false
    end

    doRemoveItem(item.uid, 1)
    doCreatureSay(cid, "You are now an "..getPlayerVocationName(cid).."!", TALKTYPE_ORANGE_1)
    doPlayerSetVocation(getPlayerVocation(cid) + 4)
    db.executeQuery("UPDATE players SET name = '[DNT] "..getCreatureName(cid).."' WHERE id = "..getPlayerGUID(cid)..";")
    addEvent(doRemoveCreature, 5*1000, cid, true)
return true
end
 
Back
Top