• 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!

NPC Prestige/rebirth System with onlook working

No.It says everything is fine.
This is what it says


[07/08/2013 15:57:04] The Forgotten Server - Version 0.2.11pl2 (Mystic Spirit).
[07/08/2013 15:57:04] A server developed by Talaturen, Kornholijo, Elf, and Fallen.
[07/08/2013 15:57:05] Visit our forum for updates, support, and resources: http://otland.net/.

[07/08/2013 15:57:05] >> Loading config
[07/08/2013 15:57:05] >> Loading RSA key
[07/08/2013 15:57:05] >> Testing SQL connection... SQLite.
[07/08/2013 15:57:05] >> Loading bans
[07/08/2013 15:57:05] >> Loading vocations
[07/08/2013 15:57:05] >> Loading commands
[07/08/2013 15:57:05] >> Loading items

[07/08/2013 15:57:05] Warning: [XMLSCHEMA] items.xml could not be validated against XSD
[07/08/2013 15:57:05] >> Loading script systems
[07/08/2013 15:57:09] >> Loading monsters
[07/08/2013 15:57:12] >> Loading outfits
[07/08/2013 15:57:12] >> Loading admin protocol config
[07/08/2013 15:57:12] >> Loading experience stages
[07/08/2013 15:57:12] >> Using plaintext passwords
[07/08/2013 15:57:12] >> Checking world type... PVP
[07/08/2013 15:57:12] >> Loading map
[07/08/2013 15:57:12] > Map size: 1000x1000.
[07/08/2013 15:57:13] > Map loading time: 1.418 seconds.
[07/08/2013 15:57:15] Notice: Map load (relational) took: 1.638 s
[07/08/2013 15:57:15] >> Initializing gamestate
[07/08/2013 15:57:16] >> Loaded all modules, server starting up...
[07/08/2013 15:57:17] >> Forgotten Server Online!


everything fine right?
items.xml is like that because i added donator items i scripted them on my own,plus the high attacks with high defense and wands. is that decent scripting for a beginner?
 
[10/08/2013 22:14:50] [Error - CreatureEvent::configureEvent] No valid type for creature event.look
[10/08/2013 22:14:50] Warning: [BaseEvents::loadFromXml] Can not configure event

What do I have to change?
 
possible to make this keeep 25% of hp&mp when rebirthed, & could someone edit it so the player gets new vocations choices? like
Do you want to become a Draven, Vayne , Gragas or Oriana? (some kind of "promotion" but rebirth will be lvl 1 (any level) and keeps 25% of hp/mp and skills if possible)
 
Is there a possibility to make prestige doors which will check If I have 500+ prestiges ?
 
Last edited:
@Jodla
Code:
local spos = {x=1000, y=1000, z=7}

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, 85987) >= 500 then
doTeleportThing(cid, spos, TRUE)
else
doTeleportThing(cid, spos, FALSE)
doCreatureSay(cid, "You are not high enough prestige to enter this door", 19)
end
return true
end
Works on 0.3.7
 
@Jodla
Code:
local spos = {x=1000, y=1000, z=7}

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, 85987) >= 500 then
doTeleportThing(cid, spos, TRUE)
else
doTeleportThing(cid, spos, FALSE)
doCreatureSay(cid, "You are not high enough prestige to enter this door", 19)
end
return true
end
Works on 0.3.7
1000 1000 7 its a position of doors?
 
hi i am having a problem .. when i am doing a rebirth it does it but it dosent change level mana health.. it actually does nothing but only add's you are 1 prestige and btw this is my problem

[12/04/2014 23:57:44] [Error - Npc interface]
[12/04/2014 23:57:44] data/npc/scripts/rebirth.lua:eek:nCreatureSay
[12/04/2014 23:57:44] Description:
[12/04/2014 23:57:44] data/npc/scripts/rebirth.lua:37: attempt to call field 'executeQuery' (a nil value)
[12/04/2014 23:57:44] stack traceback:
[12/04/2014 23:57:44] data/npc/scripts/rebirth.lua:37: in function 'callback'
[12/04/2014 23:57:44] data/npc/lib/npcsystem/npchandler.lua:390: in function 'onCreatureSay'
[12/04/2014 23:57:45] data/npc/scripts/rebirth.lua:8: in function <data/npc/scripts/rebirth.lua:8>




Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid)                npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid)            npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)            npcHandler:onCreatureSay(cid, type, msg) end
function onThink()                    npcHandler:onThink() end
function creatureSayCallback(cid, type, msg)
    if(not npcHandler:isFocused(cid)) then
        return false
    end
    local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid
    if(msgcontains(msg, 'prestige')) then
        selfSay('Are you ready to prestige and start a new life?', cid)
        talkState[talkUser] = 1
    elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
        -------CONFIGS-------
        local level = 100000
        local cost = 0
        ------/CONFIGS-------
        -----LOCALS-----
        local id = getPlayerGUID(cid)
        local name = getCreatureName(cid)
        local vocation = getPlayerVocation(cid)
        local storage = getCreatureStorage(cid, 85987)
        ----/LOCALS-----
        if(getPlayerLevel(cid) >= level) then
            if(doPlayerRemoveMoney(cid, cost) == TRUE) then
                if(isInArray({5, 6, 7, 8}, vocation)) then
                    doCreatureSetStorage(cid, 85987, storage == -1 and 1 or storage + 1)
                    doRemoveCreature(cid)
                    db.executeQuery("UPDATE `players` SET `level` = 8, `experience` = 4200, `healthmax` = 2000, `manamax` = 2000, `promotion` = 0 WHERE `id` ='"..id.."';")
                    db.executeQuery("UPDATE `players` SET `name` = '"..name.."' WHERE `id` ='"..id.."';")
                else
                    selfSay('Please talk with Forgotten King and promote first.', cid)
                    talkState[talkUser] = 0
                end
            else
                selfSay('You don\'t have enough money. You need to pay 10 mil to be rebirthed.', cid)
                talkState[talkUser] = 0
            end
        else
            selfSay('Only characters of level 100000 or higher can be rebirthed.', cid)
            talkState[talkUser] = 0
        end
    elseif(msgcontains(msg, 'no') and talkState[talkUser] == 1) then
        selfSay('Okey. Come back when you feel ready.', cid)
        talkState[talkUser] = 0
    end
    return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
 
Great script. I have modified a little bit though. I've made it use the database only, this is because in my modified script your character looses all storage values, max health and so on (Almost a complete restart, besides the items, houses etc.). I also made a function so that you can check the prestiges and also include them in doors and such. If you're interessed I might release it after further testing.
 
UPDATED 5-26-2014. On look works properly now add also added a few extras to the npc max rebirths and broadcast on rebirth. Also This is tested on 0.3.6
First for the NPC
1-Open a new notepad or w.e you use. I use Notepad++ alot neater Notepad++ v5.9.3 - Current Version
2-Past the following script below in your npc folder, and save it as Prestige NPC.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Prestige Npc" script="data/npc/scripts/rebirth.lua" walkinterval="2000" floorchange="0">
    <health now="100" max="100"/>
<look type="73" head="78" body="88" legs="0" feet="88" addons="3"/>
    <parameters>
        <parameter key="message_greet" value="Hello |PLAYERNAME|. Im in charge of the 'Prestige' system."/>
        <parameter key="message_farewell" value="Good bye my dear friend."/>
    </parameters>
</npc>
3-Paste the following script below in your npc/scripts folder and save it as Rebirth.lua
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid)                npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid)            npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)            npcHandler:onCreatureSay(cid, type, msg) end
function onThink()                    npcHandler:onThink() end

function creatureSayCallback(cid, type, msg)
    if(not npcHandler:isFocused(cid)) then
        return false
    end

    local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid

    if(msgcontains(msg, 'prestige')) then
        selfSay('Are you ready to prestige and start a new life?', cid)
        talkState[talkUser] = 1
    elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
        -------CONFIGS-------
        local level = 500
        local cost = 10000
        ------/CONFIGS-------
        -----LOCALS-----
        local id = getPlayerGUID(cid)
        local name = getCreatureName(cid)
        local vocation = getPlayerVocation(cid)
        local storage = getCreatureStorage(cid, 85987)
        local Max_Rebirth = 5  --Change this for the number of rebirths

        ----/LOCALS-----
        if(getPlayerLevel(cid) >= level) then
        if getCreatureStorage(cid, 85987) < Max_Rebirth then
            if(doPlayerRemoveMoney(cid, cost) == TRUE) then
                if(isInArray({5, 6, 7, 8}, vocation)) then
                    doCreatureSetStorage(cid, 85987, storage == -1 and 1 or storage + 1)
                                db.executeQuery('UPDATE players SET rebirths=rebirths+'.. 1 ..' WHERE id='..getPlayerGUID(cid))
                            doBroadcastMessage("" ..  name .. " has just prestiged!", TALKTYPE_ORANGE_1)
                    doRemoveCreature(cid)
                    db.executeQuery("UPDATE `players` SET `level` = 8, `experience` = 4200")
                    db.executeQuery("UPDATE `players` SET `name` = '"..name.."' WHERE `id` ='"..id.."';")
                else
                    selfSay('Please talk with Forgotten King and promote first.', cid)
                    talkState[talkUser] = 0
                end
            else
                selfSay('You don\'t have enough money. You need to pay 10 mil to be rebirthed.', cid)
                talkState[talkUser] = 0
            end
        else
            selfSay('You have reached the maximum rebirth.', cid)
            talkState[talkUser] = 0
        end
    else
        selfSay('Only characters of level 500 or higher can be rebirthed.', cid)
        talkState[talkUser] = 0
    end
elseif(msgcontains(msg, 'no') and talkState[talkUser] == 1) then
        selfSay('Okey. Come back when you feel ready.', cid)
        talkState[talkUser] = 0
end

    return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

If you need help understanding the configs etc just ask.

4-Onlook- for yall that dont know what this is it basicly just adds this to when u look at a character.

----Past the following script below in your Creaturescripts scripts folder, and save it as RebirthDescription.lua
Code:
function onLook(cid, thing, position, lookDistance)
    if isPlayer(thing.uid) and thing.uid ~= cid then
        local sex = getPlayerSex(thing.uid)
        local message = "You see " .. getPlayerName(thing.uid) .. " (Level " .. getPlayerLevel(thing.uid) .. ")."
        if(getPlayerFlagValue(thing.uid, PLAYERFLAG_SHOWGROUPINSTEADOFVOCATION)) then
            message = message .. " " .. (sex == PLAYERSEX_FEMALE and "She" or "He") .. " is a " .. getPlayerGroupName(thing.uid) .. "."
        elseif(getPlayerVocation(thing.uid) ~= 0) then
            message = message .. " " .. (sex == PLAYERSEX_FEMALE and "She" or "He") .. " is a " .. getPlayerVocationName(thing.uid):lower() .. "."
        else
            message = message .. " " .. (sex == PLAYERSEX_FEMALE and "She" or "He") .. " has no vocation."
        end

        if(getPlayerNameByGUID(getPlayerPartner(thing.uid), false, false) ~= nil) then
            message = message .. " " .. (sex == PLAYERSEX_FEMALE and "She" or "He") .. " is " .. (sex == PLAYERSEX_FEMALE and "wife" or "husband") .. " of " .. getPlayerNameByGUID(getPlayerPartner(thing.uid)) .. "."
        end

        if(getPlayerGuildId(thing.uid) > 0) then
            message = message .. " " .. (sex == PLAYERSEX_FEMALE and "She" or "He") .. " is " .. (getPlayerGuildRank(thing.uid) == "" and "a member" or getPlayerGuildRank(thing.uid)) .. " of the " .. getPlayerGuildName(thing.uid)
            message = getPlayerGuildNick(thing.uid) ~= "" and message .. " (" .. getPlayerGuildNick(thing.uid) .. ")." or message .. "."
        end

        if(getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS)) then
            message = message .. "\nHealth: [" .. getCreatureHealth(thing.uid) .. " / " .. getCreatureMaxHealth(thing.uid) .. "], Mana: [" .. getCreatureMana(thing.uid) .. " / " .. getCreatureMaxMana(thing.uid) .. "]."
        end

        if(getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEEPOSITION)) then
            message = message .. "\nPosition: [X: " .. position.x .. "] [Y: " .. position.y .. "] [Z: " .. position.z .. "]."
        end

        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, message .. (sex == PLAYERSEX_FEMALE and " \nShe" or " \nHe") .. " has prestiged " .. (getCreatureStorage(thing.uid, 85987) == -1 and "0" or getCreatureStorage(thing.uid, 85987)) .. " " .. (math.abs(getCreatureStorage(thing.uid, 85987)) == 1 and "time." or "times."))
        return false
    elseif thing.uid == cid then
        local message = "You see yourself."
        if(getPlayerFlagValue(cid, PLAYERFLAG_SHOWGROUPINSTEADOFVOCATION)) then
            message = message .. " You are " .. getPlayerGroupName(cid) .. "."
        elseif(getPlayerVocation(cid) ~= 0) then
            message = message .. " You are a " .. getPlayerVocationName(cid):lower() .. "."
        else
            message = message .. " You have no vocation."
        end

        if(getPlayerNameByGUID(getPlayerPartner(cid), false, false) ~= nil) then
            message = message .. " You are " .. (getPlayerSex(cid) == PLAYERSEX_FEMALE and "wife" or "husband") .. " of " .. getPlayerNameByGUID(getPlayerPartner(cid)) .. "."
        end

        if(getPlayerGuildId(cid) > 0) then
            message = message .. " You are " .. (getPlayerGuildRank(cid) == "" and "a member" or getPlayerGuildRank(cid)) .. " of the " .. getPlayerGuildName(cid)
            message = getPlayerGuildNick(cid) ~= "" and message .. " (" .. getPlayerGuildNick(cid) .. ")." or message .. "."
        end

        if(getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS)) then
            message = message .. "\nHealth: [" .. getCreatureHealth(cid) .. " / " .. getCreatureMaxHealth(cid) .. "], Mana: [" .. getCreatureMana(cid) .. " / " .. getCreatureMaxMana(cid) .. "]."
        end

        if(getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEEPOSITION)) then
            message = message .. "\nPosition: [X: " .. position.x .. "] [Y: " .. position.y .. "] [Z: " .. position.z .. "]."
        end

        return false, doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, message .. " \nYou have prestiged " .. (getCreatureStorage(cid, 85987) == -1 and "0" or getCreatureStorage(cid, 85987)) .. " " .. (getCreatureStorage(cid, 85987) == 1 and "time." or "times."))
    end

    return true
end
5-Add the code below to ur creaturescripts.xml
Code:
 <event type="look" name="RebirthDescription" event="script" value="rebirthdescription.lua"/>
6-Lastly just register it in your login.lua located in ur creaturescripts script folder. just add this in on a new line
Code:
registerCreatureEvent(cid, "RebirthDescription")
Hope this helps. Sorry for being gone from this. Any questions let me know.
Tjay
lol! there is bug when i make rebirth with one char its prestige but rest of chars of all account on server goes to level 8!! lol! wtf
 
Change the query on line 42 to this.
Code:
db.executeQuery("UPDATE `players` SET `level` = 8, `experience` = 4200 WHERE id = "..id)
 
Last edited:
Change the query on line 42 to this.
Code:
db.executeQuery("UPDATE `players` SET `level` = 8, `experience` = 4200 WHERE id = "..getPlayerGUID(cid))
mmm i got problem now ,i've prestiges normally but my level still same level LoL i set level of prestige 5k and i still 5k and got prestige and got this error when i prestiged
Code:
[28/12/2014 02:27:44] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such column: rebirths (UPDATE players SET rebirths=rebirths+1 WHERE id=34)
[28/12/2014 02:27:44] > Broadcasted message: "Hotmail has just prestiged!".
[28/12/2014 02:27:44] Hotmail has logged out.

[28/12/2014 02:27:44] [Error - Npc interface]
[28/12/2014 02:27:44] data/npc/scripts/rebirth.lua:onCreatureSay
[28/12/2014 02:27:44] Description:
[28/12/2014 02:27:44] (internalGetPlayerInfo) Player not found when requesting player info #18

[28/12/2014 02:27:44] [Error - Npc interface]
[28/12/2014 02:27:44] data/npc/scripts/rebirth.lua:onCreatureSay
[28/12/2014 02:27:44] Description:
[28/12/2014 02:27:44] data/npc/scripts/rebirth.lua:42: attempt to concatenate a boolean value
[28/12/2014 02:27:44] stack traceback:
[28/12/2014 02:27:44]     data/npc/scripts/rebirth.lua:42: in function 'callback'
[28/12/2014 02:27:44]     data/npc/lib/npcsystem/npchandler.lua:390: in function 'onCreatureSay'
[28/12/2014 02:27:44]     data/npc/scripts/rebirth.lua:8: in function <data/npc/scripts/rebirth.lua:8>

this npc script after i changed line 42
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid)                npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid)            npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)            npcHandler:onCreatureSay(cid, type, msg) end
function onThink()                    npcHandler:onThink() end

function creatureSayCallback(cid, type, msg)
    if(not npcHandler:isFocused(cid)) then
        return false
    end

    local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid

    if(msgcontains(msg, 'prestige')) then
        selfSay('Are you ready to prestige and start a new life?', cid)
        talkState[talkUser] = 1
    elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
        -------CONFIGS-------
        local level = 5000
        local cost = 100000
        ------/CONFIGS-------
        -----LOCALS-----
        local id = getPlayerGUID(cid)
        local name = getCreatureName(cid)
        local vocation = getPlayerVocation(cid)
        local storage = getCreatureStorage(cid, 85987)
        local Max_Rebirth = 5  --Change this for the number of rebirths

        ----/LOCALS-----
        if(getPlayerLevel(cid) >= level) then
        if getCreatureStorage(cid, 85987) < Max_Rebirth then
            if(doPlayerRemoveMoney(cid, cost) == TRUE) then
                if(isInArray({5, 6, 7, 8}, vocation)) then
                    doCreatureSetStorage(cid, 85987, storage == -1 and 1 or storage + 1)
                                db.executeQuery('UPDATE players SET rebirths=rebirths+'.. 1 ..' WHERE id='..getPlayerGUID(cid))
                            doBroadcastMessage("" ..  name .. " has just prestiged!", TALKTYPE_ORANGE_1)
                    doRemoveCreature(cid)
                    db.executeQuery("UPDATE `players` SET `level` = 8, `experience` = 4200 WHERE id = "..getPlayerGUID(cid))
                    db.executeQuery("UPDATE `players` SET `name` = '"..name.."' WHERE `id` ='"..id.."';")
                else
                    selfSay('Please talk with Forgotten King and promote first.', cid)
                    talkState[talkUser] = 0
                end
            else
                selfSay('You don\'t have enough money. You need to pay 10 mil to be rebirthed.', cid)
                talkState[talkUser] = 0
            end
        else
            selfSay('You have reached the maximum rebirth.', cid)
            talkState[talkUser] = 0
        end
    else
        selfSay('Only characters of level 5000 or higher can be rebirthed.', cid)
        talkState[talkUser] = 0
    end
elseif(msgcontains(msg, 'no') and talkState[talkUser] == 1) then
        selfSay('Okey. Come back when you feel ready.', cid)
        talkState[talkUser] = 0
end

    return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
 
Last edited:
Edited my post.
thx working fine but may you make one more script ? to make exp on prestige down to 50% i mean if he take 100 exp on normal one then he must get 50 exp only when he get prestige
thx again
[28/12/2014 12:51:49] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such column: rebirths (UPDATE players SET rebirths=rebirths+1 WHERE id=34)
found this when i reborned :D
 
Hey there, the script isn't working for me, on server console does this:


[7/8/2018 23:3:0] [Error - NpcScript Interface]
[7/8/2018 23:3:0] data/npc/scripts/rebirth.lua:eek:nCreatureSay
[7/8/2018 23:3:0] Description:
[7/8/2018 23:3:0] (internalGetPlayerInfo) Player not found when requesting player info #18

[7/8/2018 23:3:0] [Error - NpcScript Interface]
[7/8/2018 23:3:0] data/npc/scripts/rebirth.lua:eek:nCreatureSay
[7/8/2018 23:3:0] Description:
[7/8/2018 23:3:0] data/npc/scripts/rebirth.lua:42: attempt to concatenate a boolean value
[7/8/2018 23:3:0] stack traceback:
[7/8/2018 23:3:0] data/npc/scripts/rebirth.lua:42: in function 'callback'
[7/8/2018 23:3:0] data/npc/lib/npcsystem/npchandler.lua:424: in function 'onCreatureSay'
[7/8/2018 23:3:0] data/npc/scripts/rebirth.lua:8: in function <data/npc/scripts/rebirth.lua:8>

plz help.
 
I'm getting the errors too:

Lua Script Error: [Npc interface]
data/npc/scripts/Prestiger.lua:eek:nCreatureSay
data/npc/scripts/Prestiger.lua:30: attempt to call global 'getCreatureStorage' (a nil value)
stack traceback:
[C]: in function 'getCreatureStorage'
data/npc/scripts/Prestiger.lua:30: in function 'callback'
data/npc/lib/npcsystem/npchandler.lua:411: <data/npc/scripts/Prestiger.lua:8>

Lua Script Error: [Npc interface]
data/npc/scripts/Prestiger.lua:eek:nCreatureSay
data/npc/scripts/Prestiger.lua:30: attempt to call global 'getCreatureStorage' (a nil value)
stack traceback:
[C]: in function 'getCreatureStorage'
data/npc/scripts/Prestiger.lua:30: in function 'callback'
data/npc/lib/npcsystem/npchandler.lua:411: in function 'onCreatureSay'
data/npc/scripts/Prestiger.lua:8: in function <data/npc/scripts/Prestiger.lua:8>

Lua Script Error: [Npc interface]
data/npc/scripts/Prestiger.lua:eek:nCreatureSay
data/npc/scripts/Prestiger.lua:30: attempt to call global 'getCreatureStorage' (a nil value)
stack traceback:
[C]: in function 'getCreatureStorage'
data/npc/scripts/Prestiger.lua:30: in function 'callback'
data/npc/lib/npcsystem/npchandler.lua:411: in function 'onCreatureSay'
data/npc/scripts/Prestiger.lua:8: in function <data/npc/scripts/Prestiger.lua:8>

Since I've seen 4 people with similar problems as me, I'll say the code doesn't work xD.
 
Back
Top