• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

NPC Jailkeeper + paying [request]

dediol

New Member
Joined
Apr 15, 2008
Messages
37
Reaction score
0
Location
Belgium
Hello,

I got a 8.0 xml Evolution server, and i was wondering if somebody could help me make a good script for an npc. Since ive tryed for hours and it still doesnt work =/. The npc his job would be walk around in the jail a little, and i can tp botters and etc to there and when they say hi to the jailkeeper he says:
jailkeeper: Hello <name> you have been caught cheating, do you wanna get out of here?
player: yes
jailkeeper: Then you will need to pay 100k. Do you wanna pay that amount?
player: yes
and then the player gets tpd to x-y =D

If somebody could help me with this, ive tryed 1 script trough the search function but i dint work, cause my lua scripts are different.

kind regards,
 
Well, I know this will work for TFS, but I'm not sure about Evo. Try it out and we'll see.


jailer.lua
Code:
local talkNode = 0

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

-- OTServ event handling functions start
function onCreatureSay(cid, type, msg)                             npcHandler:onCreatureSay(cid, type, msg) end
function onThingMove(creature, thing, oldpos, oldstackpos)                 npcHandler:onThingMove(creature, thing, oldpos, oldstackpos) end
function onCreatureAppear(creature)                             npcHandler:onCreatureAppear(creature) end
function onCreatureDisappear(id)                             npcHandler:onCreatureDisappear(id) end
function onCreatureTurn(creature)                             npcHandler:onCreatureTurn(creature) end
function onCreatureChangeOutfit(creature)                         npcHandler:onCreatureChangeOutfit(creature) end
function onThink()                                     npcHandler:onThink() end
-- OTServ event handling functions end


local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
        
function creatureSayCallback(cid, type, msg)
    if(npcHandler.focus ~= cid) then
        return false
    end

    player_gold = getPlayerItemCount(cid,2148)
    player_plat = getPlayerItemCount(cid,2152)*100
    player_crys = getPlayerItemCount(cid,2160)*10000
    player_money = player_gold + player_plat + player_crys
    
    local cost = 1337
    local outPos = {x = 100, y = 100, z = 10}
    
    if msgcontains(msg,'yes') then
        if talkNode == 0 then
            selfSay('Then you will need to pay ' .. cost .. ' gold. Do you wanna pay that amount?')
            talkNode = 1
        elseif talkNode == 1 then
            if player_money >= cost then
                doRemoveMoney(cid,cost)
                doTeleportThing(cid,outPos)
            end                
        end
    end    
    return TRUE
end



npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
-- Makes sure the npc reacts when you say hi, bye etc.
npcHandler:addModule(FocusModule:new())
jailer.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Jailer" script="data/npc/scripts/jailer.lua" autowalk="1" floorchange="0">
    <health now="100" max="100"/>
    <look type="130" head="39" body="122" legs="125" feet="57" addons="0"/>
    <parameters>
        <parameter key="message_greet" value="Hello |PLAYERNAME| you have been caught cheating, do you wanna get out of here?"/>
    </parameters>
</npc>

Never used Evo, and never will... ;)
 
Last edited:
only for evo Empty xD
I need ur help in lua where should i contact u?

by the way ~wrong section.
 
Last edited:
no, u can create depot there o_O or depot items check if possible + bank npc
 
Well ty for the help but its still not working :(

21:41 Wipkip [8]: hi
21:41 Jailer: Hello Wipkip you have been caught cheating, do you wanna get out of here?
21:41 Wipkip [8]: yes
21:41 Jailer: Then you will need to pay 1337 gold. Do you wanna pay that amount?
21:41 Wipkip [8]: yes

He just says the first sentence but then doesnt respond anymore. Ive changed in the lua the coords and thats all. In the starter screen he says:
Lua script error: [NPC interface]

Data+npc/scripts/jailer.lua:40: attempt to call global 'doRemoveMoney' <a nil value>

any clue? :D

ps: about no money = bad luck thats the risk of botting. Wich means youll need to get a friend to trow you some money inside the jail cause its surrounded with jailbars :D

if somebody is kind enough to help me trough msn or so: [email protected].
 
try this
PHP:
local talkNode = 0

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

-- OTServ event handling functions start
function onCreatureSay(cid, type, msg)                             npcHandler:onCreatureSay(cid, type, msg) end
function onThingMove(creature, thing, oldpos, oldstackpos)                 npcHandler:onThingMove(creature, thing, oldpos, oldstackpos) end
function onCreatureAppear(creature)                             npcHandler:onCreatureAppear(creature) end
function onCreatureDisappear(id)                             npcHandler:onCreatureDisappear(id) end
function onCreatureTurn(creature)                             npcHandler:onCreatureTurn(creature) end
function onCreatureChangeOutfit(creature)                         npcHandler:onCreatureChangeOutfit(creature) end
function onThink()                                     npcHandler:onThink() end
-- OTServ event handling functions end


local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
        
function creatureSayCallback(cid, type, msg)
    if(npcHandler.focus ~= cid) then
        return false
    end

    player_gold = getPlayerItemCount(cid,2148)
    player_plat = getPlayerItemCount(cid,2152)*100
    player_crys = getPlayerItemCount(cid,2160)*10000
    player_money = player_gold + player_plat + player_crys
    
    local cost = 1337
    local outPos = {x = 100, y = 100, z = 10}
    
    if msgcontains(msg,'yes') then
        if talkNode == 0 then
            selfSay('Then you will need to pay ' .. cost .. ' gold. Do you wanna pay that amount?')
            talkNode = 1
        elseif talkNode == 1 then
            if player_money >= cost then
                doRemoveitem(cid, 2148, 1337)
                doTeleportThing(cid,outPos)
            end                
        end
    end    
    return TRUE
end



npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
-- Makes sure the npc reacts when you say hi, bye etc.
npcHandler:addModule(FocusModule:new())
 
Last edited:
@Clary
1:47 Wipkip [8]: hi
21:47 Jailer: Hello Wipkip you have been caught cheating, do you wanna get out of here?
21:47 Wipkip [8]: yes
21:47 Jailer: Then you will need to pay 1337 gold. Do you wanna pay that amount?
21:47 Wipkip [8]: yes

@the starter of my ot:
Lua script error: [npc interface]
data/npc/scripts/jailer.lua: onCreatureSay

data/npc/scripts/jailer.lua:40: attempt to call global 'doRemoveitem' <a nil value>

im trying to give you guys as much information i can see to make it easier for my problem to solve :D
 
hmm second gonna check evo source and edit this post.
PHP:
local talkNode = 0

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

-- OTServ event handling functions start
function onCreatureSay(cid, type, msg)                             npcHandler:onCreatureSay(cid, type, msg) end
function onThingMove(creature, thing, oldpos, oldstackpos)                 npcHandler:onThingMove(creature, thing, oldpos, oldstackpos) end
function onCreatureAppear(creature)                             npcHandler:onCreatureAppear(creature) end
function onCreatureDisappear(id)                             npcHandler:onCreatureDisappear(id) end
function onCreatureTurn(creature)                             npcHandler:onCreatureTurn(creature) end
function onCreatureChangeOutfit(creature)                         npcHandler:onCreatureChangeOutfit(creature) end
function onThink()                                     npcHandler:onThink() end
-- OTServ event handling functions end


local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
        
function creatureSayCallback(cid, type, msg)
    if(npcHandler.focus ~= cid) then
        return false
    end

    player_gold = getPlayerItemCount(cid,2148)
    player_plat = getPlayerItemCount(cid,2152)*100
    player_crys = getPlayerItemCount(cid,2160)*10000
    player_money = player_gold + player_plat + player_crys
    
    local cost = 1337
    local outPos = {x = 100, y = 100, z = 10}
    
    if msgcontains(msg,'yes') then
        if talkNode == 0 then
            selfSay('Then you will need to pay ' .. cost .. ' gold. Do you wanna pay that amount?')
            talkNode = 1
        elseif talkNode == 1 then
            if player_money >= cost then
                DoPlayerRemoveMoney(cid, cost)
                doTeleportThing(cid,outPos)
            end                
        end
    end    
    return TRUE
end



npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
-- Makes sure the npc reacts when you say hi, bye etc.
npcHandler:addModule(FocusModule:new())
 
Last edited:
pc can it be the problem that i dint had enoug GOLD coins in my backpack? could you guys set it so he sees platinum and crystal coins instead of gold coins? cause when i look at the script:
doRemoveitem(cid, 2148, 1337)

And if people dont know they need gold coins in their bp , they will bug my ass always? :(

@Clary if you need information about my server:
Appelmos Development Version 0.1.0 based on OTserv SVN version 0.6.0
Evolutions Server.
 
Still not working :(

Lua script error: [npc interface]
data/npc/scripts/jailer.lua: onCreatureSay

data/npc/scripts/jailer.lua:40: attempt to call global 'doRemoveitem' <a nil value>

21:55 Wipkip [8]: hi
21:55 Jailer: Hello Wipkip you have been caught cheating, do you wanna get out of here?
21:55 Wipkip [8]: yes
21:55 Jailer: Then you will need to pay 1337 gold. Do you wanna pay that amount?
21:55 Wipkip [8]: yes
21:55 Jailer: Good bye, Wipkip!
 
Ya, Clary's script just uses gold coins, that's why I used the function doRemoveMoney(cid,1337) But I guess that server doesn't have that function. Do you have a function list that you can attach, so I can see them?

@down: Ya, I would recommend that too. But since he's asking for a evo script I guess he wants to continue using evo... :(
 
@empty can you be a little more specific plx? Im for the moment a little retarded in lua :wub: I got my own server now but i was missing this npc :(

@Tofflarn
Please if you cant help me with my problem stop posting ridiclous posts wich doesnt help.
 
Do you have a .txt file in your server folder with all the functions in? It should be called functions.txt or something.
 
Did you mean this? this is called npc.lua
--------------------------------------------------------
-- Include external classes.
dofile('data/npc/scripts/lib/npcsystem/npcsystem.lua')

-- get the distance to a creature
function getDistanceToCreature(id)
if id == 0 or id == nil then
selfGotoIdle()
end

cx, cy, cz = creatureGetPosition(id)
sx, sy, sz = selfGetPosition()

if cx == nil then
return nil
end

return math.max(math.abs(sx-cx), math.abs(sy-cy))
end

-- do one step to reach position
function moveToPosition(x,y,z)
selfMoveTo(x, y, z)
end

-- do one step to reach creature
function moveToCreature(id)
if id == 0 or id == nil then
selfGotoIdle()
end
tx,ty,tz=creatureGetPosition(id)
if tx == nil then
selfGotoIdle()
else
moveToPosition(tx, ty, tz)
end
end

-- stop talking
function selfGotoIdle()
following = false
attacking = false
selfAttackCreature(0)
target = 0
end

-- getCount function by Jiddo
function getCount(msg)
b, e = string.find(msg, "%d+")

if b == nil or e == nil then
count = 1
else
count = tonumber(string.sub(msg, b, e))
end

if count > 2000 then
count = 2000
elseif count == 0 then
count = 1
end

return count
end

-- buy an item
function buy(cid, itemid, count, cost)
cost = count*cost
amount = count
if doPlayerRemoveMoney(cid, cost) == 1 then
if getItemStackable(itemid) then
while count > 100 do
doPlayerAddItem(cid, itemid, 100)
count = count - 100
end

doPlayerAddItem(cid, itemid, count) -- add the last items, if there is left
else
while count > 0 do
doPlayerAddItem(cid, itemid, 1)
count = count - 1
end
end

if amount <= 1 then
selfSay('Here is your '.. getItemName(itemid) .. '!')
else
selfSay('Here are your '.. amount ..' '.. getItemName(itemid) .. 's!')
end
else
selfSay('Sorry, you do not have enough money.')
end
end

function buyFluidContainer(cid, itemid, count, cost, fluidtype)
cost = count*cost
amount = count
if doPlayerRemoveMoney(cid, cost) == 1 then
while count > 0 do
doPlayerAddItem(cid, itemid, fluidtype)
count = count - 1
end

if amount <= 1 then
selfSay('Here is your '.. getItemName(itemid) .. '!')
else
selfSay('Here are your '.. amount ..' '.. getItemName(itemid) .. 's!')
end
else
selfSay('Sorry, you do not have enough money.')
end
end

function buyContainer(cid, container, itemid, count, money)
if doPlayerRemoveMoney(cid, money) == 1 then
bp = doPlayerAddItem(cid, container, 1)
x = 0

while x < 20 do
doAddContainerItem(bp, itemid, count)
x = x + 1
end

selfSay('Here you are.')
else
selfSay('Sorry, you don\'t have enough money.')
end
end

-- sell an item
function sell(cid, itemid, count, cost)
cost = count*cost
if doPlayerRemoveItem(cid, itemid, count) == 1 then
doPlayerAddMoney(cid, cost)

if cost > 0 then
selfSay('You couldn\'t retrieve '.. cost ..' gold pieces, please contact the admin.')
end

if count <= 1 then
selfSay('Thanks for this '.. getItemName(itemid) .. '!')
else
selfSay('Thanks for these '.. count..' '.. getItemName(itemid) .. 's!')
end
else
selfSay('Sorry, you do not have this item.')
end
end

-- pay for anything?
function pay(cid, cost)
if doPlayerRemoveMoney(cid, cost) == 1 then
return true
else
return false
end
end

-- learn spell
function learnSpell(cid, spell, cost)
x,y,z = creatureGetPosition(cid)
if doPlayerLearnSpell(cid, spell) == 1 then
if doPlayerRemoveMoney(cid, cost) == 1 then
doSendMagicEffect({x=x, y=y, z=z}, 14)
selfSay('To use it say: '.. spell ..'.')
else
selfSay('Sorry, you do not have this item.')
end
else
selfSay('You already know this spell.')
end
end

-- Travel player
function travel(cid, x, y, z)
destpos = {x = x, y = y, z = z}
doTeleportThing(cid, destpos)
doSendMagicEffect(destpos, 10)
end

-- add all addons
function addon(cid, addon)
if getPlayerSex(cid) == 1 then
for x = 128, 134 do
doPlayerAddAddon(cid, x, addon)
end

for y = 143, 146 do
doPlayerAddAddon(cid, y, addon)
end

for z = 151, 154 do
doPlayerAddAddon(cid, z, addon)
end
else
for x = 136, 142 do
doPlayerAddAddon(cid, x, addon)
end

for y = 147, 150 do
doPlayerAddAddon(cid, y, addon)
end

for z = 155, 158 do
doPlayerAddAddon(cid, z, addon)
end
end
end

function msgcontains(txt, str)
return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))
end

ps sorry i dont know whats the html code to put it in a box =/
 
No, not that one. Where did you find the server? I might download it and look thru it.
 
Its a server i got from a mate, so i dont know where but if you can hit me up trough msn, we can work trough realVNC ?

edit:
getPlayerFood(uid) -- Returns the food ticks of player
getPlayerHealth(uid) -- Returns the player's health
getPlayerMana(uid) -- Returns the player's mana
getPlayerLevel(uid) -- Returns the player's level
getPlayerMagLevel(uid) -- Returns the player's magic level
getPlayerName(uid) -- Returns the player's name
getPlayerAccess(uid) -- Returns the player's access
getPlayerPosition(uid) -- Returns the player's position
getPlayerSkill(uid,skillid) -- Returns the player's skill level of a skill
getPlayerMasterPos(cid) -- Returns the player's temple position
getPlayerTown(cid) -- Returns the player's town-id
getPlayerVocation(cid) -- Returns the player's vocation
getPlayerItemCount(cid,itemid) -- Returns the amount of an item that the player has
getPlayerSoul(cid) -- Returns the player's soul
getPlayerFreeCap(cid) -- Returns the player's free capacity
getPlayerLight(cid) -- Returns the player's light ticks
getPlayerSlotItem(cid, slot) -- Returns an item if an item is found in the slot
getPlayerDepotItems(uid, depotid) -- Returns the player's depot items of a decent depot
getPlayerSex(cid) -- Returns the player's gender
getPlayerLookDir(cid) -- Returns the player's look direction
getPlayerStorageValue(uid,valueid) -- Returns the value of the value id of a player
setPlayerStorageValue(uid,valueid, newvalue) -- Adds a new value-id to the storage map of player
getGlobalStorageValue(valueid) -- Returns the value of the value id
setGlobalStorageValue(valueid, newvalue) -- Adds a new value-id to the storage map
getTilePzInfo(pos) 1 is pz. 0 no pz. -- Returns the protection zone status of a tile
getTileHouseInfo(pos). 0 no house. != 0 house id -- Returns the house status of a tile
getItemRWInfo(uid) -- Check if the item is writeable
getThingfromPos(pos) -- Returns something that matches the position
getThingPos(uid) -- Returns the position of something
doRemoveItem(uid,n) -- Removes any item (from the map or player doesn't matter)
doPlayerFeed(uid,food) -- Increase the food ticks of a player
doPlayerSendCancel(uid,text) -- Send any cancel message to a player
doPlayerSendDefaultCancel(uid, ReturnValue) -- Send a cancel message to player
doTeleportThing(uid,newpos) -- Teleports something to a position
doTransformItem(uid,toitemid) -- Changes the item's id
doPlayerSay(uid,text,type) -- Let's the player say any text
doSendMagicEffect(position,type) -- Show a magic effect at a position
doChangeTypeItem(uid,new_type) -- Change the type/count of an item
doSetItemActionId(uid,actionid) -- Set the item's action id
doSetItemText(uid,text) -- Set the text of an item if you open it
doSetItemSpecialDescription(uid,desc) -- Set an item's description
doSendAnimatedText(position,text,color) -- Show animated text at a position (any text or color)
doPlayerAddSkillTry(cid,skillid,tries) -- Add skill tries to a decent skill
doPlayerAddHealth(cid,health) -- Add health to a player
doCreatureAddHealth(cid,health) -- Add health to a creature
doPlayerAddMana(cid,mana) -- Add mana to a player
doPlayerAddSoul(cid,soul) -- Add soul points to a player
doPlayerAddItem(cid,itemid,count or type) -- Add an item to a player -- returns uid of the created item
doPlayerSendTextMessage(cid,MessageClasses,message) -- Send a message to a player
doPlayerRemoveMoney(cid,money) -- Remove money from a player
doShowTextWindow(cid,maxlen,canWrite) -- Show a text dialog which is writable
doShowTextDialog(cid,itemid,text) -- Show a text dialog to a player that contains text
doDecayItem(uid) -- Start to decay an item
doCreateItem(itemid,type or count,position) -- Only working on ground; Returns uid of the created item
doSummonCreature(name, position) -- Creates a creature
doMoveCreature(cid, direction) -- Move a creature to a decent direction
doPlayerSetMasterPos(cid,pos) -- Set the player's temple position
doPlayerSetTown(cid,townid) -- Set the player's town-id
doPlayerSetVocation(cid,voc) -- Set the player's vocation
doPlayerRemoveItem(cid,itemid,count) -- Remove an item from a player
doPlayerAddExp(cid,exp) -- Add experience to a player
doSetCreatureLight(cid, lightLevel, lightColor, time) -- Add a new light condtion to a player
isPlayer(cid) -- Check if something is a creature
isCreature(cid) -- Check if something is a creature
isContainer(uid)-- Check if something is a container
isMoveable(uid) -- Check if something is moveable
getPlayerByName(name) -- Returns a player if the name matches any player on the server
registerCreature(cid) -- Returns and adds a new creature to the script
getContainerSize(uid) -- Returns the size of a container
getContainerCap(uid) -- Returns the capacity of a container
getContainerItem(uid, slot) -- Check if the slot contains a container
doAddContainerItem(uid, itemid, count or subtype) -- Add an item to a container
getHouseOwner(houseid) -- Returns the owner of a house
getHouseName(houseid) -- Returns the name of a house
getHouseEntry(houseid) -- Return the entry-position of a house
getHouseRent(houseid) -- Returns the rent of a house
getHouseTown(houseid) -- Returns the town-id of a house
getHouseAccessList(houseod, listid) -- Returns the house-id of a house that matches the listid
getHouseByPlayerName(playername) -- Returns the house-id of a house that matches the player's name
setHouseAccessList(houseid, listid, listtext) -- Set the accesslist of a door or anything else in a house
setHouseOwner(houseid, ownername) -- Set the owner of a house
getWorldType() -- Returns the worldtype (0 = no-pvp, 1 = pvp, 2 = pvp-enf)
getWorldTime() -- Returns the ingame time
getWorldLight() -- Returns the light level of the server
getWorldCreatures(type) Returns the amount of creatures (0 players, 1 monsters, 2 npcs, 3 all)
getWorldUpTime() -- Returns the uptime of the server
createCombatArea( {area}, {extArea} ) -- Create a new combat area
createConditionObject(type) -- Creates a new condition (condition-type required)
setCombatArea(combat, area) -- Set the area of a combat object
setCombatCondition(combat, condition) -- Adds a condtion to a combat object
setCombatParam(combat, key, value) -- Adds a parameter to a combat object with a decent value
setConditionParam(condition, key, value) -- Adds a parameter to a condition with a decent value
addDamageCondition(condition, key, rounds, time, value) -- Adds a damage value to a condtion
addOutfitCondition(condition, lookTypeEx, lookType, lookHead, lookBody, lookLegs, lookFeet) -- Adds a new outfit condtion to a creature
setCombatCallBack(combat, key, function_name) -- Set the callback of a combat object
setCombatFormula(combat, type, mina, minb, maxa, maxb) -- Set the combat's formula
setConditionFormula(combat, mina, minb, maxa, maxb) -- Set the condition's formula
doCombat(cid, combat, param) -- Execute the combat object
createCombatObject() -- Creates a new combat object
doAreaCombatHealth(cid, type, pos, area, min, max, effect) -- Change any creature's health (area)
doTargetCombatHealth(cid, target, type, min, max, effect) -- Change any creature's health (target)
doAreaCombatMana(cid, pos, area, min, max, effect) -- Change any creature's mana (area)
doTargetCombatMana(cid, target, min, max, effect) -- Change any creature's mana (target)
doAreaCombatCondition(cid, pos, area, condition, effect) -- Adds a condition (area)
doTargetCombatCondition(cid, target, condition, effect) -- Adds a condition (target)
doAreaCombatDispel(cid, pos, area, type, effect) -- Removes a condition (area)
doTargetCombatDispel(cid, target, type, effect) -- Removes a condition (target)
doChallengeCreature(cid, target) -- Challenge a creature
doConvinceCreature(cid, target) -- Convince a creature
doChangeSpeed(cid, delta) -- Change the creature's speed
doSetMonsterOutfit(cid, name, time) -- Sets the creature's outfit to a monster look
doSetItemOutfit(cid, item, time) -- Sets the creature's outfit to an item
doSetCreatureOutfit(cid, outfit, time) -- Sets the creature's outfit (table required)
getCreatureOutfit(cid) -- Returns the creature's outfit (in a table)
getCreaturePosition(cid) -- Returns the creature's position (in a table)
getCreatureName(cid) -- Returns the name of a creature
isItemStackable(itemid) -- Check if an item is stackable
isItemRune(itemid) -- Check if an item is a rune
isItemDoor(itemid) -- Check if an item is a door
isItemContainer(itemid) -- Check if an item is a container
isItemFluidContainer(itemid) -- Check if an item is a fluid
getItemName(itemid) -- Returns the item's name
getPlayerSkull(cid) -- Returns the skull-type of a player
getPlayerConditionTicks(cid, conditionid) -- Returns the ticks of a decent condtion of a player
doPlayerAddAddon(cid, looktype, addon) -- Add an addon to an outfit of the player
getPlayerOutfitAddon(cid, looktype) -- Returns the addon-value of an outfit of a player
getItemStackable(itemid) -- Check if the item is stackable
isPremium(cid) -- Check if the player is premium
addPremium(cid, days) -- Add x days to the player's account
foundNewGuild(guildname) -- Create a new guild
getPlayerGuildStatus(name) -- Returns the player's guild status
setPlayerGuildStatus(guildstatus, name) -- Set the player's guild status
getPlayerGuildName(name) -- Returns the guild's name if the player has a guild
setPlayerGuild(name, guildstatus, guilrank, guildname) -- Edit the guild stats of a player
clearPlayerGuild(name) -- Remove a player from a guild
setPlayerGuildNick(name, guildnick) -- Set the nick of the player
setPlayerGuildTitle(name, guildnick) -- Set the nick of the player
doPlayerLearnSpell(cid, spellwords) -- Learn a spell to a player
doPlayerAddBlesing(cid, blessid) -- Add a blessing to a player
getPlayerBlessing(cid, blessid) -- Check if the player has this blessing
debugPrint(text) -- Print a message in the console
isInArray(array, value) -- Check if an array contains a decent value
addEvent(callback, delay, parameter) -- Add an event
stopEvent(eventid) -- Stops an added event
getDataDir() -- Returns a string that is the data directory
 
ps i need to dinner for a second =/ Empty its possible for you to check my thread when im back also, if the script doesnt work by then also? :(
 
Back
Top