config.lua
I think you'r database using:Code:encryptionType = "sha1"
Code:encryptionType = "plain"
Ps. Sorry double post...;./
Ah ty!
config.lua
I think you'r database using:Code:encryptionType = "sha1"
Code:encryptionType = "plain"
Ps. Sorry double post...;./
smth wrong with comunications.cpp .. i debug when i logon.
sry for double post, but it worked ! but now, a new problem.. getting debug when I kill a monster
monsterLootMessageType = [B][COLOR="red"]19[/COLOR][/B]
config.luasry for double post, but it worked ! but now, a new problem.. getting debug when I kill a monster
monsterLootMessageType = 19
local commonItems = {
-- ITEMS ALL VOCS RECEIVE
{itemid=2457, count=1}, -- legion helmet
{itemid=2463, count=1}, -- chain armor
{itemid=2647, count=1}, -- studded legs
{itemid=2643, count=1}, -- leather boots
{itemid=2120, count=1}, -- rope
{itemid=5710, count=1}, -- shovel
{itemid=2160, count=10}, -- platinum coin
{itemid=7620, count=2}, -- mana potion
{itemid=7618, count=2}, -- health potion
{itemid=2787, count=10}, -- white mushroom
}
local firstItems = {
{ -- SORC ITEMS
{itemid=2190, count=1}, -- wand of vortex
{itemid=2175, count=1} -- spellbook
},
{ -- DRUID ITEMS
{itemid=2182, count=1}, -- snakebite rod
{itemid=2175, count=1} -- spellbook
},
{ -- PALADIN ITEMS
{itemid=2456, count=1}, -- bow
{itemid=2544, count=100} -- 100 arrows
},
{ -- KNIGHT ITEMS
{itemid=2428, count=1}, -- katana
{itemid=2525, count=1} -- copper shield
}
}
for _, items in ipairs(firstItems) do
for _, item in ipairs(commonItems) do
table.insert(items, item)
end
end
local storage = 35355
function onLogin(cid)
local receivedItems = getPlayerStorageValue(cid, storage)
if receivedItems == -1 then
--[[local backpack = ]]doPlayerAddItem(cid, 1988, 1)
local giveItems = firstItems[getPlayerVocation(cid)]
if giveItems ~= nil then
for _, v in ipairs(giveItems) do
--doAddContainerItem(backpack, v.itemid, v.count or 1)
doPlayerAddItem(cid, v.itemid, v.count or 1)
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have recieved your first items!")
end
setPlayerStorageValue(cid, storage, 1)
end
return true
end