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

War server scripts

Meoow

New Member
Joined
Aug 16, 2009
Messages
30
Reaction score
0
Hello. I need a few scripts:
auto bless - when a single player will log in he/she will recive all five blesses.

A script when a player dies he won't downgrade to level 99. He'll always stay on 100 level. And If he's like 150 level He won't downgrade to level 100, just one or two levels, like normal.

Another one script that I need is like when a player dies he won't be logged out. He will be kicked to temple. Like on karamy-war. ^^'

Please help me!

@sorry for wrong board. If any admin can put this in right board, please do it for me :).

@down I took scripts from here but It didn't worked. ;s.
 
Last edited:
I took a script from here.

function onLogin(cid)
if(getPlayerLevel(cid) < 100) then
local setPlayerLevelOnLogin = 100
doPlayerAddExperience(cid, (getExperienceForLevel(setPlayerLevelOnLogin) - getPlayerExperience(cid)))
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Go kill someone!")
end
return TRUE
end

and put it into creaturescripts/scripts/login.lua but It doesn't work -_-'
 
I took a script from here.



and put it into creaturescripts/scripts/login.lua but It doesn't work -_-'
wft D:?


Bless:
Lua:
function onLogin(cid)
	if getPlayerStorageValue(cid,123) == TRUE then
		doPlayerAddBless(cid, 1)
		doPlayerAddBless(cid, 2)
		doPlayerAddBless(cid, 3)
		doPlayerAddBless(cid, 4)
		doPlayerAddBless(cid, 5)
	end
	return true
end

Playerdeath or logout
Lua:
function onLogin(cid)
	doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
	return true
end
 
Last edited:
Thank you. I had a problem with blessings because everytime a player died He was downgraded to level 1. When I deleted !bless command and blessings at login his level didn't downgrade but he always lost his backpack. So I made a script where a player doesn't lose backpack. And now It's okay. But now level isn't going down for every dead. :/

Btw. I need a script for skills / magic level (on Login)for all vocations. I tried this But then nobody could login.
 
Last edited:
creaturescripts.xml
Lua:
	<event type="login" name="level" event="script" value="level.lua"/>
level.lua
Lua:
function onLogin(cid)
        if getPlayerLevel(cid) < 100 then
	doPlayerAddExperience(cid, (getExperienceForLevel(100) - getPlayerExperience(cid)))
end
return TRUE
end

Edit 100 for what level taken in login
* add i login.lua
 
I still have problems. I want to make normal player level 100 on login, and premium player 130 level on login. (Premium, not VIP player)
How can I change this script for a premium player not vip?
function onLogin(cid)

local setPlayerLevelOnLogin = 150
local setPlayerLevelOnLoginVIP = 160

if(getPlayerLevel(cid) < 150) and vip.getVip(cid) >= 1 then
doPlayerAddExperience(cid, (getExperienceForLevel(setPlayerLevelOnLoginVIP) - getPlayerExperience(cid)))
doPlayerSendTextMessage(0, cid, 22, "Go kill someone!")
else
doPlayerAddExperience(cid, (getExperienceForLevel(setPlayerLevelOnLogin) - getPlayerExperience(cid)))
doPlayerSendTextMessage(0, cid, 22, "Go kill someone!")
end
return TRUE
end

I am a mapper, that's probably why I don't understand It :eek:.
 
Lua:
function onLogin(cid)
 
local setPlayerLevelOnLogin = 150
 local setPlayerLevelOnLoginVIP = 160
 
if(getPlayerLevel(cid) < 150) and getPlayerPremiumDays(cid) >= 1 then
 doPlayerAddExperience(cid, (getExperienceForLevel(setPlayerLevelOnLoginVIP) - getPlayerExperience(cid)))
 doPlayerSendTextMessage(0, cid, 22, "Go kill someone!")
 else
 doPlayerAddExperience(cid, (getExperienceForLevel(setPlayerLevelOnLogin) - getPlayerExperience(cid)))
 doPlayerSendTextMessage(0, cid, 22, "Go kill someone!")
 end
 return TRUE
 end





just changed vip.getVip(cid) >= 1 to getPlayerPremiumDays(cid) >= 1


ps: didnt understand level 150/160 and you said wanted lvl 100/130 maybe add another local setPlayerLevelOnLoginPremium ???
 
Last edited:
i've made the source edition following the tutorial of @LucasFerrarz
and im using this script for skulls it's a war server and the script it's a mod
the problem it's that player never loses skull even if they log out or die
i want a function for that when player log out keep the skull but if he dies lost the gained skull
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<mod name="Skull System" version="1.0" author="Skyforever" contact="tibiaking.com" enabled="yes">
<config name="SkullC_func"><![CDATA[

function setSkullColor(cid)
local t = {
[{1,2}] = 1,
[{3,4}] = 2,
[{5,6}] = 3,
[{7,math.huge}] = 4
}
for var, ret in pairs(t) do
if getPlayerFrags(cid) >= var[1] and getPlayerFrags(cid) <= var[2] then
doCreatureSetSkullType(cid, ret)
end
end
end
function getPlayerFrags(cid)
local time = os.time()
local times = {today = (time - 86400), week = (time - (7 * 86400))}
local contents, result = {day = {}, week = {}, month = {}}, db.getResult("SELECT `pd`.`date`, `pd`.`level`, `p`.`name` FROM `player_killers` pk LEFT JOIN `killers` k ON `pk`.`kill_id` = `k`.`id` LEFT JOIN `player_deaths` pd ON `k`.`death_id` = `pd`.`id` LEFT JOIN `players` p ON `pd`.`player_id` = `p`.`id` WHERE `pk`.`player_id` = " .. getPlayerGUID(cid) .. " AND `k`.`unjustified` = 1 AND `pd`.`date` >= " .. (time - (30 * 86400)) .. " ORDER BY `pd`.`date` DESC")
if(result:getID() ~= -1) then
repeat
local content = {date = result:getDataInt("date")}
if(content.date > times.today) then
table.insert(contents.day, content)
elseif(content.date > times.week) then
table.insert(contents.week, content)
else
table.insert(contents.month, content)
end
until not result:next()
result:free()
end
local size = {day = table.maxn(contents.day),week = table.maxn(contents.week),month = table.maxn(contents.month)}
return size.day + size.week + size.month
end
]]></config>
<event type="login" name="SkullLogin" event="script"><![CDATA[
domodlib('SkullC_func')
function onLogin(cid)
registerCreatureEvent(cid, "ColorKill")
setSkullColor(cid)
return true
end]]></event>
<event type="kill" name="ColorKill" event="script"><![CDATA[
domodlib('SkullC_func')
function onKill(cid, target)
if isPlayer(cid) and isPlayer(target) then
doCreatureSetSkullType(target, 0)
addEvent(setSkullColor, 100, cid)
end
return true
end]]></event>
</mod>
 
i've made the source edition following the tutorial of @LucasFerrarz
and im using this script for skulls it's a war server and the script it's a mod
the problem it's that player never loses skull even if they log out or die
i want a function for that when player log out keep the skull but if he dies lost the gained skull
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<mod name="Skull System" version="1.0" author="Skyforever" contact="tibiaking.com" enabled="yes">
<config name="SkullC_func"><![CDATA[

function setSkullColor(cid)
local t = {
[{1,2}] = 1,
[{3,4}] = 2,
[{5,6}] = 3,
[{7,math.huge}] = 4
}
for var, ret in pairs(t) do
if getPlayerFrags(cid) >= var[1] and getPlayerFrags(cid) <= var[2] then
doCreatureSetSkullType(cid, ret)
end
end
end
function getPlayerFrags(cid)
local time = os.time()
local times = {today = (time - 86400), week = (time - (7 * 86400))}
local contents, result = {day = {}, week = {}, month = {}}, db.getResult("SELECT `pd`.`date`, `pd`.`level`, `p`.`name` FROM `player_killers` pk LEFT JOIN `killers` k ON `pk`.`kill_id` = `k`.`id` LEFT JOIN `player_deaths` pd ON `k`.`death_id` = `pd`.`id` LEFT JOIN `players` p ON `pd`.`player_id` = `p`.`id` WHERE `pk`.`player_id` = " .. getPlayerGUID(cid) .. " AND `k`.`unjustified` = 1 AND `pd`.`date` >= " .. (time - (30 * 86400)) .. " ORDER BY `pd`.`date` DESC")
if(result:getID() ~= -1) then
repeat
local content = {date = result:getDataInt("date")}
if(content.date > times.today) then
table.insert(contents.day, content)
elseif(content.date > times.week) then
table.insert(contents.week, content)
else
table.insert(contents.month, content)
end
until not result:next()
result:free()
end
local size = {day = table.maxn(contents.day),week = table.maxn(contents.week),month = table.maxn(contents.month)}
return size.day + size.week + size.month
end
]]></config>
<event type="login" name="SkullLogin" event="script"><![CDATA[
domodlib('SkullC_func')
function onLogin(cid)
registerCreatureEvent(cid, "ColorKill")
setSkullColor(cid)
return true
end]]></event>
<event type="kill" name="ColorKill" event="script"><![CDATA[
domodlib('SkullC_func')
function onKill(cid, target)
if isPlayer(cid) and isPlayer(target) then
doCreatureSetSkullType(target, 0)
addEvent(setSkullColor, 100, cid)
end
return true
end]]></event>
</mod>
I didn't test this. Mod version.
Add those two functions to your lib/050-function.lua:

Code:
function getPlayerTemporaryKills(cid)
       local frags = db.getResult("SELECT `kills` FROM `players` WHERE `id` = '"..getPlayerGUID(cid).."';")
       if(frags:getID() == -1) then
           return 0 and true
       end
       kills = frags:getDataInt("kills")
       frags:free()
       return kills
   end
   function addTemporaryKill(cid, amount)
       return db.executeQuery("UPDATE `players` SET `kills` = `kills` + ".. amount .." WHERE `id` = '"..getPlayerGUID(cid).."';")
   end

Add those two lines to your creaturescripts/login.lua:
Code:
registerCreatureEvent(cid, "SkullLogin")
       registerCreatureEvent(cid, "SkullKill")

Add this to your database:
Code:
ALTER TABLE `players` ADD `kills` INT( 11 ) NOT NULL DEFAULT '0';
XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<mod name="Skull System" version="1.0" author="GarQet" contact="https://otland.net/members/garqet.30076/" enabled="yes">
   <description>
   Add those two functions to your lib/050-function.lua:
 
   function getPlayerTemporaryKills(cid)
       local frags = db.getResult("SELECT `kills` FROM `players` WHERE `id` = '"..getPlayerGUID(cid).."';")
       if(frags:getID() == -1) then
           return 0 and true
       end
       kills = frags:getDataInt("kills")
       frags:free()
       return kills
   end
   function addTemporaryKill(cid, amount)
       return db.executeQuery("UPDATE `players` SET `kills` = `kills` + ".. amount .." WHERE `id` = '"..getPlayerGUID(cid).."';")
   end
 
   Add those two lines to your creaturescripts/login.lua:
       registerCreatureEvent(cid, "SkullLogin")
       registerCreatureEvent(cid, "SkullKill")
   
   Add this to your database:
       ALTER TABLE `players` ADD `kills` INT( 11 ) NOT NULL DEFAULT '0';
   </description>
   <config name="Skulls"><![CDATA[
       config = {
           kills = {
               [5] = {20, 100, "Black"}, -- [5 - black skull] = {min_amount_of_kills to get this skull, max...}
               [4] = {15, 20, "Red"},
               [3] = {10, 15, "White"},
               [2] = {5, 10, "Green"},
               [1] = {1, 5, "Yellow"}
           }
       }
   ]]></config>
   <event type="login" name="SkullLogin" event="script"><![CDATA[
   domodlib('Skulls')
   function onLogin(cid)
       for skull, amount in pairs(config.kills) do
           if getPlayerTemporaryKills(cid) >= amount[1] and getPlayerTemporaryKills(cid) < amount[2] then
               doCreatureSetSkullType(cid, skull)
               doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have ".. getPlayerTemporaryKills(cid) .." frags without death, in form of reward you received ".. amount[3] .." Skull!")
           end
       end
       return true
   end
   ]]></event>
   <event type="kill" name="SkullKill" event="script"><![CDATA[
   domodlib('Skulls')
  function onKill(cid, target)
      if isPlayer(cid) and isPlayer(target) then
          addTemporaryKill(cid, -getPlayerTemporaryKills(cid))
          addTemporaryKill(target, 1)
         for skull, amount in pairs(config.kills) do
             if getPlayerTemporaryKills(target) >= amount[1] and getPlayerTemporaryKills(target) < amount[2] then
                 doCreatureSetSkullType(target, skull)
                 doPlayerSendTextMessage(target, MESSAGE_INFO_DESCR, "You have ".. getPlayerTemporaryKills(target) .." frags without death, in form of reward you received ".. amount[3] .." Skull!")
             end
         end         
      end
      return true
  end
   ]]></event>
</mod>
 
Last edited:
I didn't test this. Mod version.
Add those two functions to your lib/050-function.lua:

Code:
function getPlayerTemporaryKills(cid)
       local frags = db.getResult("SELECT `kills` FROM `players` WHERE `id` = '"..getPlayerGUID(cid).."';")
       if(frags:getID() == -1) then
           return 0 and true
       end
       kills = frags:getDataInt("kills")
       frags:free()
       return kills
   end
   function addTemporaryKill(cid, amount)
       return db.executeQuery("UPDATE `players` SET `kills` = `kills` + ".. amount .." WHERE `id` = '"..getPlayerGUID(cid).."';")
   end

Add those two lines to your creaturescripts/login.lua:
Code:
registerCreatureEvent(cid, "SkullLogin")
       registerCreatureEvent(cid, "SkullKill")

Add this to your database:
Code:
ALTER TABLE `players` ADD `kills` INT( 11 ) NOT NULL DEFAULT '0';
XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<mod name="Skull System" version="1.0" author="GarQet" contact="https://otland.net/members/garqet.30076/" enabled="yes">
   <description>
   Add those two functions to your lib/050-function.lua:
 
   function getPlayerTemporaryKills(cid)
       local frags = db.getResult("SELECT `kills` FROM `players` WHERE `id` = '"..getPlayerGUID(cid).."';")
       if(frags:getID() == -1) then
           return 0 and true
       end
       kills = frags:getDataInt("kills")
       frags:free()
       return kills
   end
   function addTemporaryKill(cid, amount)
       return db.executeQuery("UPDATE `players` SET `kills` = `kills` + ".. amount .." WHERE `id` = '"..getPlayerGUID(cid).."';")
   end
 
   Add those two lines to your creaturescripts/login.lua:
       registerCreatureEvent(cid, "SkullLogin")
       registerCreatureEvent(cid, "SkullKill")
   
   Add this to your database:
       ALTER TABLE `players` ADD `kills` INT( 11 ) NOT NULL DEFAULT '0';
   </description>
   <config name="Skulls"><![CDATA[
       config = {
           kills = {
               [5] = {20, 100, "Black"}, -- [5 - black skull] = {min_amount_of_kills to get this skull, max...}
               [4] = {15, 20, "Red"},
               [3] = {10, 15, "White"},
               [2] = {5, 10, "Green"},
               [1] = {1, 5, "Yellow"}
           }
       }
   ]]></config>
   <event type="login" name="SkullLogin" event="script"><![CDATA[
   domodlib('Skulls')
   function onLogin(cid)
       for skull, amount in pairs(config.kills) do
           if getPlayerTemporaryKills(cid) >= amount[1] and getPlayerTemporaryKills(cid) < amount[2] then
               doCreatureSetSkullType(cid, skull)
               doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have ".. getPlayerTemporaryKills(cid) .." frags without death, in form of reward you received ".. amount[3] .." Skull!")
           end
       end
       return true
   end
   ]]></event>
   <event type="kill" name="SkullKill" event="script"><![CDATA[
   domodlib('Skulls')
   function onKill(cid, target)
       if isPlayer(cid) and isPlayer(target) then
           addTemporaryKill(cid, -getPlayerTemporaryKills(cid))
           addTemporaryKill(target, 1)
       end
       return true
   end
   ]]></event>
</mod>
Thaanks a lot mate but i think the last script mod that contains skull system isn't working i killed a lot a never gained any skull

any other tip?
im using tfs 0.3.7 - OTX 2
the mod that i posted is working but players never lose skull
regards
pls help i has been stuck on this by long time
 
Ah, yh, forgot to add main function xD
Script updated.
thanks bro !. but now the script is working in an inverse way. i killed a player in my db that was with red skull y killed with a char unskulled when the red died he re-appeared in temple with this message 06:20 You have 1 frags without death, in form of reward you received Yellow Skull!
and its awesome but the problem is that the unskulled player never won a skull, also the player that killed skulled players when he died he reappeared with a skull !! so it's working in a weird way, could you help me via teamviewer or something?
i have my sourced edited i just need theses scripts to get the server working as "war"

regards, thaanks you so much for your help men
@GarQet
 
thanks bro !. but now the script is working in an inverse way. i killed a player in my db that was with red skull y killed with a char unskulled when the red died he re-appeared in temple with this message 06:20 You have 1 frags without death, in form of reward you received Yellow Skull!
and its awesome but the problem is that the unskulled player never won a skull, also the player that killed skulled players when he died he reappeared with a skull !! so it's working in a weird way, could you help me via teamviewer or something?
i have my sourced edited i just need theses scripts to get the server working as "war"

regards, thaanks you so much for your help men
@GarQet
Are you sure that you check it correctly? What do you mean by saying: "the unskulled player never won a skull"? I don't get it, why?
Another question, on your war server player while dying getting tp to temple?
IMO the code is correctly written.
 
"with unskulled player never won skull"
i mean the script should give skulll green yellow etc when player reach certain ammount of kills
so a player whitout skull never won skull but if another player kill him the player reappers with a skull
so the script is working in a weird way
and yes they are teleported to temple
/:
regards
 
Try this one:
XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<mod name="Skull System" version="1.0" author="GarQet" contact="https://otland.net/members/garqet.30076/" enabled="yes">
   <description>
   Add those two functions to your lib/050-function.lua:
  
   function getPlayerTemporaryKills(cid)
       local frags = db.getResult("SELECT `kills` FROM `players` WHERE `id` = '"..getPlayerGUID(cid).."';")
       if(frags:getID() == -1) then
           return 0 and true
       end
       kills = frags:getDataInt("kills")
       frags:free()
       return kills
   end
   function addTemporaryKill(cid, amount)
       return db.executeQuery("UPDATE `players` SET `kills` = `kills` + ".. amount .." WHERE `id` = '"..getPlayerGUID(cid).."';")
   end  
  
   Add those two lines to your creaturescripts/login.lua:
       registerCreatureEvent(cid, "SkullLogin")
       registerCreatureEvent(cid, "SkullKill")
      
   Add this to your database:
       ALTER TABLE `players` ADD `kills` INT( 11 ) NOT NULL DEFAULT '0';
   </description>
   <config name="Skulls"><![CDATA[
       config = {
           kills = {
               [1] = {0, 5, "Yellow"}, -- [1 - yellow skull] = {min_amount_of_kills to get this skull, max...}
               [2] = {5, 10, "Green"},
               [3] = {10, 15, "White"},
               [4] = {15, 20, "Red"},
               [5] = {20, 100, "Black"}
           },
           storage = 666
       }
   ]]></config>
   <event type="login" name="SkullLogin" event="script"><![CDATA[
   domodlib('Skulls')
   function onLogin(cid)
       setPlayerStorageValue(cid, config.storage, 0)
       for skull, info in pairs(config.kills) do
           if getPlayerTemporaryKills(cid) >= info[1] and getPlayerTemporaryKills(cid) < info[2] and getPlayerStorageValue(cid, config.storage) ~= skull then
               doCreatureSetSkullType(cid, skull)
               doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have ".. getPlayerTemporaryKills(cid) .." frags without death, in form of reward you received ".. info[3] .." Skull!")
               setPlayerStorageValue(cid, config.storage, skull)
           end
       end
       return true
   end
   ]]></event>
   <event type="kill" name="SkullKill" event="script"><![CDATA[
   domodlib('Skulls')
   function onKill(cid, target)
       if isPlayer(cid) and isPlayer(target) then
           addTemporaryKill(cid, -getPlayerTemporaryKills(cid))
           setPlayerStorageValue(cid, config.storage, 0)
           addTemporaryKill(target, 1)
           for skull, info in pairs(config.kills) do
               if getPlayerTemporaryKills(target) >= info[1] and getPlayerTemporaryKills(target) < info[2] and getPlayerStorageValue(target, config.storage) ~= skull then
                   doCreatureSetSkullType(target, skull)
                   doPlayerSendTextMessage(target, MESSAGE_INFO_DESCR, "You have ".. getPlayerTemporaryKills(target) .." frags without death, in form of reward you received ".. info[3] .." Skull!")
                   setPlayerStorageValue(target, config.storage, skull)
               end
           end
       end
       return true
   end
   ]]></event>
</mod>
 
Last edited:
Try this one:
XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<mod name="Skull System" version="1.0" author="GarQet" contact="https://otland.net/members/garqet.30076/" enabled="yes">
   <description>
   Add those two functions to your lib/050-function.lua:
 
   function getPlayerTemporaryKills(cid)
       local frags = db.getResult("SELECT `kills` FROM `players` WHERE `id` = '"..getPlayerGUID(cid).."';")
       if(frags:getID() == -1) then
           return 0 and true
       end
       kills = frags:getDataInt("kills")
       frags:free()
       return kills
   end
   function addTemporaryKill(cid, amount)
       return db.executeQuery("UPDATE `players` SET `kills` = `kills` + ".. amount .." WHERE `id` = '"..getPlayerGUID(cid).."';")
   end 
 
   Add those two lines to your creaturescripts/login.lua:
       registerCreatureEvent(cid, "SkullLogin")
       registerCreatureEvent(cid, "SkullKill")
     
   Add this to your database:
       ALTER TABLE `players` ADD `kills` INT( 11 ) NOT NULL DEFAULT '0';
   </description>
   <config name="Skulls"><![CDATA[
       config = {
           kills = {
               [1] = {0, 5, "Yellow"}, -- [1 - yellow skull] = {min_amount_of_kills to get this skull, max...}
               [2] = {5, 10, "Green"},
               [3] = {10, 15, "White"},
               [4] = {15, 20, "Red"},
               [5] = {20, 100, "Black"}
           },
           storage = 666
       }
   ]]></config>
   <event type="login" name="SkullLogin" event="script"><![CDATA[
   domodlib('Skulls')
   function onLogin(cid)
       setPlayerStorageValue(cid, config.storage, 0)
       for skull, info in pairs(config.kills) do
           if getPlayerTemporaryKills(cid) >= info[1] and getPlayerTemporaryKills(cid) < info[2] and getPlayerStorageValue(cid, config.storage) ~= skull then
               doCreatureSetSkullType(cid, skull)
               doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have ".. getPlayerTemporaryKills(cid) .." frags without death, in form of reward you received ".. info[3] .." Skull!")
               setPlayerStorageValue(cid, config.storage, skull)
           end
       end
       return true
   end
   ]]></event>
   <event type="kill" name="SkullKill" event="script"><![CDATA[
   domodlib('Skulls')
   function onKill(cid, target)
       if isPlayer(cid) and isPlayer(target) then
           addTemporaryKill(cid, -getPlayerTemporaryKills(cid))
           setPlayerStorageValue(cid, config.storage, 0)
           addTemporaryKill(target, 1)
           for skull, info in pairs(config.kills) do
               if getPlayerTemporaryKills(target) >= info[1] and getPlayerTemporaryKills(target) < info[2] and getPlayerStorageValue(target, config.storage) ~= skull then
                   doCreatureSetSkullType(target, skull)
                   doPlayerSendTextMessage(target, MESSAGE_INFO_DESCR, "You have ".. getPlayerTemporaryKills(target) .." frags without death, in form of reward you received ".. info[3] .." Skull!")
                   setPlayerStorageValue(target, config.storage, skull)
               end
           end
       end
       return true
   end
   ]]></event>
</mod>
Hello @GarQet
men the scripts are still working in a weird way the killed player is wining skulls and the killer plaayer isn't wining any skulls
also now im experiencing ussies in my console.exe when players log in /log out
pls help me man
i must add that im very gratefull by your help :) thanks for that
and regards
Code:
[8/7/2017 9:28:31] Kakaone has logged in.

[8/7/2017 9:28:32] [Error - CreatureScript Interface]
[8/7/2017 9:28:32] domodlib('Skulls')
[8/7/2017 9:28:32]   function onLogin(cid)
[8/7/2017 9:28:32]       setPlayerStorageValue(cid, config.storage, 0)
[8/7/2017 9:28:32]       for skull, info in pairs(config.kills) do
[8/7/2017 9:28:32]           if getPlayerTemporaryKills(cid) >= info[1] and getPlayerTemporaryKills(cid) < info[2] and getPlayerStorageValue(cid, config.storage) ~= skull then
[8/7/2017 9:28:32]               doCreatureSetSkullType(cid, skull)
[8/7/2017 9:28:32]               doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have ".. getPlayerTemporaryKills(cid) .." frags without death, in form of reward you received ".. info[3] .." Skull!")
[8/7/2017 9:28:32]               setPlayerStorageValue(target, config.storage, skull)
[8/7/2017 9:28:32]           end
[8/7/2017 9:28:32]       end
[8/7/2017 9:28:32]       return true
[8/7/2017 9:28:32]   end
[8/7/2017 9:28:33] :onLogin
[8/7/2017 9:28:33] Description:
[8/7/2017 9:28:33] (LuaInterface::luaDoCreatureSetStorage) Creature not found
[8/7/2017 9:29:11] Kakatwo has logged in.

[8/7/2017 9:29:12] [Error - CreatureScript Interface]
[8/7/2017 9:29:12] domodlib('Skulls')
[8/7/2017 9:29:12]   function onLogin(cid)
[8/7/2017 9:29:12]       setPlayerStorageValue(cid, config.storage, 0)
[8/7/2017 9:29:12]       for skull, info in pairs(config.kills) do
[8/7/2017 9:29:12]           if getPlayerTemporaryKills(cid) >= info[1] and getPlayerTemporaryKills(cid) < info[2] and getPlayerStorageValue(cid, config.storage) ~= skull then
[8/7/2017 9:29:12]               doCreatureSetSkullType(cid, skull)
[8/7/2017 9:29:12]               doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have ".. getPlayerTemporaryKills(cid) .." frags without death, in form of reward you received ".. info[3] .." Skull!")
[8/7/2017 9:29:12]               setPlayerStorageValue(target, config.storage, skull)
[8/7/2017 9:29:12]           end
[8/7/2017 9:29:12]       end
[8/7/2017 9:29:12]       return true
[8/7/2017 9:29:12]   end
[8/7/2017 9:29:13] :onLogin
[8/7/2017 9:29:13] Description:
[8/7/2017 9:29:13] (LuaInterface::luaDoCreatureSetStorage) Creature not found
[8/7/2017 9:30:30] Kakaone has logged out.
[8/7/2017 9:30:51] Kakaone has logged in.

[8/7/2017 9:30:52] [Error - CreatureScript Interface]
[8/7/2017 9:30:52] domodlib('Skulls')
[8/7/2017 9:30:52]   function onLogin(cid)
[8/7/2017 9:30:52]       setPlayerStorageValue(cid, config.storage, 0)
[8/7/2017 9:30:52]       for skull, info in pairs(config.kills) do
[8/7/2017 9:30:52]           if getPlayerTemporaryKills(cid) >= info[1] and getPlayerTemporaryKills(cid) < info[2] and getPlayerStorageValue(cid, config.storage) ~= skull then
[8/7/2017 9:30:52]               doCreatureSetSkullType(cid, skull)
[8/7/2017 9:30:52]               doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have ".. getPlayerTemporaryKills(cid) .." frags without death, in form of reward you received ".. info[3] .." Skull!")
[8/7/2017 9:30:52]               setPlayerStorageValue(target, config.storage, skull)
[8/7/2017 9:30:52]           end
[8/7/2017 9:30:52]       end
[8/7/2017 9:30:53]       return true
[8/7/2017 9:30:53]   end
[8/7/2017 9:30:53] :onLogin
[8/7/2017 9:30:53] Description:
[8/7/2017 9:30:53] (LuaInterface::luaDoCreatureSetStorage) Creature not found
[8/7/2017 9:31:9] Kakaone has logged out.
[8/7/2017 9:31:16] Kakaone has logged in.
 
Hello @GarQet
men the scripts are still working in a weird way the killed player is wining skulls and the killer plaayer isn't wining any skulls
also now im experiencing ussies in my console.exe when players log in /log out
pls help me man
i must add that im very gratefull by your help :) thanks for that
and regards
Code:
[8/7/2017 9:28:31] Kakaone has logged in.

[8/7/2017 9:28:32] [Error - CreatureScript Interface]
[8/7/2017 9:28:32] domodlib('Skulls')
[8/7/2017 9:28:32]   function onLogin(cid)
[8/7/2017 9:28:32]       setPlayerStorageValue(cid, config.storage, 0)
[8/7/2017 9:28:32]       for skull, info in pairs(config.kills) do
[8/7/2017 9:28:32]           if getPlayerTemporaryKills(cid) >= info[1] and getPlayerTemporaryKills(cid) < info[2] and getPlayerStorageValue(cid, config.storage) ~= skull then
[8/7/2017 9:28:32]               doCreatureSetSkullType(cid, skull)
[8/7/2017 9:28:32]               doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have ".. getPlayerTemporaryKills(cid) .." frags without death, in form of reward you received ".. info[3] .." Skull!")
[8/7/2017 9:28:32]               setPlayerStorageValue(target, config.storage, skull)
[8/7/2017 9:28:32]           end
[8/7/2017 9:28:32]       end
[8/7/2017 9:28:32]       return true
[8/7/2017 9:28:32]   end
[8/7/2017 9:28:33] :onLogin
[8/7/2017 9:28:33] Description:
[8/7/2017 9:28:33] (LuaInterface::luaDoCreatureSetStorage) Creature not found
[8/7/2017 9:29:11] Kakatwo has logged in.

[8/7/2017 9:29:12] [Error - CreatureScript Interface]
[8/7/2017 9:29:12] domodlib('Skulls')
[8/7/2017 9:29:12]   function onLogin(cid)
[8/7/2017 9:29:12]       setPlayerStorageValue(cid, config.storage, 0)
[8/7/2017 9:29:12]       for skull, info in pairs(config.kills) do
[8/7/2017 9:29:12]           if getPlayerTemporaryKills(cid) >= info[1] and getPlayerTemporaryKills(cid) < info[2] and getPlayerStorageValue(cid, config.storage) ~= skull then
[8/7/2017 9:29:12]               doCreatureSetSkullType(cid, skull)
[8/7/2017 9:29:12]               doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have ".. getPlayerTemporaryKills(cid) .." frags without death, in form of reward you received ".. info[3] .." Skull!")
[8/7/2017 9:29:12]               setPlayerStorageValue(target, config.storage, skull)
[8/7/2017 9:29:12]           end
[8/7/2017 9:29:12]       end
[8/7/2017 9:29:12]       return true
[8/7/2017 9:29:12]   end
[8/7/2017 9:29:13] :onLogin
[8/7/2017 9:29:13] Description:
[8/7/2017 9:29:13] (LuaInterface::luaDoCreatureSetStorage) Creature not found
[8/7/2017 9:30:30] Kakaone has logged out.
[8/7/2017 9:30:51] Kakaone has logged in.

[8/7/2017 9:30:52] [Error - CreatureScript Interface]
[8/7/2017 9:30:52] domodlib('Skulls')
[8/7/2017 9:30:52]   function onLogin(cid)
[8/7/2017 9:30:52]       setPlayerStorageValue(cid, config.storage, 0)
[8/7/2017 9:30:52]       for skull, info in pairs(config.kills) do
[8/7/2017 9:30:52]           if getPlayerTemporaryKills(cid) >= info[1] and getPlayerTemporaryKills(cid) < info[2] and getPlayerStorageValue(cid, config.storage) ~= skull then
[8/7/2017 9:30:52]               doCreatureSetSkullType(cid, skull)
[8/7/2017 9:30:52]               doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have ".. getPlayerTemporaryKills(cid) .." frags without death, in form of reward you received ".. info[3] .." Skull!")
[8/7/2017 9:30:52]               setPlayerStorageValue(target, config.storage, skull)
[8/7/2017 9:30:52]           end
[8/7/2017 9:30:52]       end
[8/7/2017 9:30:53]       return true
[8/7/2017 9:30:53]   end
[8/7/2017 9:30:53] :onLogin
[8/7/2017 9:30:53] Description:
[8/7/2017 9:30:53] (LuaInterface::luaDoCreatureSetStorage) Creature not found
[8/7/2017 9:31:9] Kakaone has logged out.
[8/7/2017 9:31:16] Kakaone has logged in.
Idk if you notice, but I updated the script today around 11 am...
 
Back
Top