Ir para conteúdo

gvviana1

Campones
  • Total de itens

    2
  • Registro em

  • Última visita

Sobre gvviana1

Informações

  • Forma que conheci o xTibia
    Otservs
  • Sou
    Não Informado

gvviana1's Achievements

  1. Nao ta indo , usando isso mas nao vai function getItemCap(itemid, quant) -- function by MatheusMkalo return getItemInfo(itemid).weight*(quant or 1) end function onUse(cid, item, fromPosition, itemEx, toPosition) local configs = { [800] = {itemid = 2496, quantperslot = 10, cost = 5, backpackid = 2002}, [801] = {itemid = 2503, quantperslot = 50, cost = 2, backpackid = 2003}, [802] = {itemid = 2504, quantperslot = 10, cost = 5, backpackid = 2002}, [803] = {itemid = 9931, quantperslot = 50, cost = 2, backpackid = 2003}, [804] = {itemid = 2493, quantperslot = 50, cost = 2, backpackid = 2003}, [805] = {itemid = 8877, quantperslot = 50, cost = 2, backpackid = 2003}, [806] = {itemid = 2495, quantperslot = 10, cost = 5, backpackid = 2002}, [808] = {itemid = 9932, quantperslot = 50, cost = 2, backpackid = 2003}, [809] = {itemid = 9778, quantperslot = 50, cost = 2, backpackid = 2003}, [810] = {itemid = 8878, quantperslot = 50, cost = 2, backpackid = 2003}, [811] = {itemid = 7896, quantperslot = 50, cost = 2, backpackid = 2003}, [812] = {itemid = 2640, quantperslot = 10, cost = 5, backpackid = 2002}, [813] = {itemid = 8858, quantperslot = 50, cost = 2, backpackid = 2003}, [814] = {itemid = 7958, quantperslot = 50, cost = 2, backpackid = 2003}, [815] = {itemid = 8918, quantperslot = 50, cost = 2, backpackid = 2003}, [816] = {itemid = 2390, quantperslot = 10, cost = 5, backpackid = 2002}, [817] = {itemid = 8304, quantperslot = 10, cost = 5, backpackid = 2002}, [818] = {itemid = 2352, quantperslot = 50, cost = 2, backpackid = 2003}, [819] = {itemid = 2195, quantperslot = 50, cost = 2, backpackid = 2003}, [820] = {itemid = 8853, quantperslot = 50, cost = 2, backpackid = 2003}, [821] = {itemid = 8926, quantperslot = 50, cost = 2, backpackid = 2003}, { local coinid = 6527 -- Use o id da gold coin (2148) se voce quizer usar o sistema de dinheiro mesmo. (Caso o itemid for 2148 o cost sera de gps ou seja 30 = 30 gps) if configs[item.actionid] then if getPlayerFreeCap(cid) >= math.ceil((getItemCap(configs[item.actionid].itemid, configs[item.actionid].quantperslot)*20)+getItemCap(configs[item.actionid].backpackid)) then if coinid ~= 2148 and getPlayerItemCount(cid, coinid) >= configs[item.actionid].cost or doPlayerRemoveMoney(cid, configs[item.actionid].cost) then local backpack = doPlayerAddItem(cid, configs[item.actionid].backpackid) for i = 1, 20 do doAddContainerItem(backpack, configs[item.actionid].itemid, configs[item.actionid].quantperslot) end doPlayerRemoveItem(cid, coinid == 2148 and 0000 or coinid, configs[item.actionid].cost) else return doPlayerSendCancel(cid, ("You need " .. configs[item.actionid].cost) .. (coinid == 2148 and " gold coins" or (" " .. getItemPluralNameById(coinid):lower())) .. " to buy this item.") end else return doPlayerSendCancel(cid, "You need " .. math.ceil((getItemCap(configs[item.actionid].itemid, configs[item.actionid].quantperslot)*20)+getItemCap(configs[item.actionid].backpackid)) .. " cap for buy that.") end end return TRUE end
  2. Erros --' [19/07/2011 10:06:17] GOD DeadAngel has logged in. [19/07/2011 10:06:17] Error during getDataInt(vipdays). [19/07/2011 10:06:17] Error during getDataInt(vipdays). [19/07/2011 10:06:17] Error during getDataInt(vipdays). [19/07/2011 10:06:19] Error during getDataInt(vipdays). [19/07/2011 10:06:22] Error during getDataInt(vipdays). [19/07/2011 10:06:25] Error during getDataInt(vipdays). [19/07/2011 10:06:28] Error during getDataInt(vipdays). [19/07/2011 10:06:30] GOD DeadAngel has logged out. [19/07/2011 10:06:31] Hight has logged in. [19/07/2011 10:06:31] Lua Script Error: [MoveEvents Interface] [19/07/2011 10:06:31] data/movements/scripts/viptile.lua:onStepIn [19/07/2011 10:06:31] data/movements/scripts/viptile.lua:2: attempt to call global 'isVip' (a nil value) [19/07/2011 10:06:31] stack traceback: [19/07/2011 10:06:31] data/movements/scripts/viptile.lua:2: in function <data/movements/scripts/viptile.lua:1> [19/07/2011 10:06:31] Error during getDataInt(vipdays). [19/07/2011 10:06:31] Error during getDataInt(vipdays). [19/07/2011 10:06:31] Error during getDataInt(vipdays). [19/07/2011 10:06:31] Error during getDataInt(vipdays). [19/07/2011 10:06:32] Lua Script Error: [MoveEvents Interface] [19/07/2011 10:06:32] data/movements/scripts/viptile.lua:onStepIn [19/07/2011 10:06:32] data/movements/scripts/viptile.lua:2: attempt to call global 'isVip' (a nil value) [19/07/2011 10:06:32] stack traceback: [19/07/2011 10:06:32] data/movements/scripts/viptile.lua:2: in function <data/movements/scripts/viptile.lua:1> [19/07/2011 10:06:34] Error during getDataInt(vipdays). [19/07/2011 10:06:37] Error during getDataInt(vipdays). [19/07/2011 10:06:40] Error during getDataInt(vipdays). [19/07/2011 10:06:43] Error during getDataInt(vipdays). [19/07/2011 10:06:46] Error during getDataInt(vipdays). [19/07/2011 10:06:49] Error during getDataInt(vipdays). [19/07/2011 10:06:52] Error during getDataInt(vipdays). [19/07/2011 10:06:55] Error during getDataInt(vipdays). [19/07/2011 10:06:58] Error during getDataInt(vipdays). [19/07/2011 10:07:01] Error during getDataInt(vipdays). [19/07/2011 10:07:04] Error during getDataInt(vipdays). [19/07/2011 10:07:07] Error during getDataInt(vipdays). [19/07/2011 10:07:10] Error during getDataInt(vipdays). [19/07/2011 10:07:13] Error during getDataInt(vipdays). [19/07/2011 10:07:16] Error during getDataInt(vipdays). [19/07/2011 10:07:19] Hight has logged out. [19/07/2011 10:07:20] GOD DeadAngel has logged in. [19/07/2011 10:07:20] Error during getDataInt(vipdays). [19/07/2011 10:07:20] Error during getDataInt(vipdays). [19/07/2011 10:07:20] Error during getDataInt(vipdays). [19/07/2011 10:07:22] Error during getDataInt(vipdays). [19/07/2011 10:07:24] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/questdebagcomitem.lua) [19/07/2011 10:07:24] data/actions/scripts/questdebagcomitem.lua:20: 'end' expected (to close 'if' at line 3) near '<eof>' [19/07/2011 10:07:24] [Warning - Actions::registerEvent] Duplicate registered item id: 2160 [19/07/2011 10:07:25] Lua Script Error: [Action Interface] [19/07/2011 10:07:25] data/actions/scripts/vipdoor.lua:onUse [19/07/2011 10:07:25] data/actions/scripts/vipdoor.lua:2: attempt to call global 'isVip' (a nil value) [19/07/2011 10:07:25] stack traceback: [19/07/2011 10:07:25] data/actions/scripts/vipdoor.lua:2: in function <data/actions/scripts/vipdoor.lua:1> [19/07/2011 10:07:25] Error during getDataInt(vipdays). [19/07/2011 10:07:26] Lua Script Error: [Action Interface] [19/07/2011 10:07:26] data/actions/scripts/vipdoor.lua:onUse [19/07/2011 10:07:26] data/actions/scripts/vipdoor.lua:2: attempt to call global 'isVip' (a nil value) [19/07/2011 10:07:26] stack traceback: [19/07/2011 10:07:26] data/actions/scripts/vipdoor.lua:2: in function <data/actions/scripts/vipdoor.lua:1> [19/07/2011 10:07:26] Lua Script Error: [Action Interface] [19/07/2011 10:07:26] data/actions/scripts/vipdoor.lua:onUse [19/07/2011 10:07:26] data/actions/scripts/vipdoor.lua:2: attempt to call global 'isVip' (a nil value) [19/07/2011 10:07:26] stack traceback: [19/07/2011 10:07:26] data/actions/scripts/vipdoor.lua:2: in function <data/actions/scripts/vipdoor.lua:1> [19/07/2011 10:07:28] Lua Script Error: [Action Interface] [19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:onUse [19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:2: attempt to call global 'isVip' (a nil value) [19/07/2011 10:07:28] stack traceback: [19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:2: in function <data/actions/scripts/vipdoor.lua:1> [19/07/2011 10:07:28] Lua Script Error: [Action Interface] [19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:onUse [19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:2: attempt to call global 'isVip' (a nil value) [19/07/2011 10:07:28] stack traceback: [19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:2: in function <data/actions/scripts/vipdoor.lua:1> [19/07/2011 10:07:28] Lua Script Error: [Action Interface] [19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:onUse [19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:2: attempt to call global 'isVip' (a nil value) [19/07/2011 10:07:28] stack traceback: [19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:2: in function <data/actions/scripts/vipdoor.lua:1> [19/07/2011 10:07:28] Error during getDataInt(vipdays). [19/07/2011 10:07:29] Lua Script Error: [Action Interface] [19/07/2011 10:07:29] data/actions/scripts/vipdoor.lua:onUse [19/07/2011 10:07:29] data/actions/scripts/vipdoor.lua:2: attempt to call global 'isVip' (a nil value) [19/07/2011 10:07:29] stack traceback: [19/07/2011 10:07:29] data/actions/scripts/vipdoor.lua:2: in function <data/actions/scripts/vipdoor.lua:1> [19/07/2011 10:07:31] Error during getDataInt(vipdays). [19/07/2011 10:07:34] Error during getDataInt(vipdays). [19/07/2011 10:07:37] Error during getDataInt(vipdays). [19/07/2011 10:07:40] Error during getDataInt(vipdays). [19/07/2011 10:07:43] Error during getDataInt(vipdays). [19/07/2011 10:07:46] Error during getDataInt(vipdays). [19/07/2011 10:07:49] Error during getDataInt(vipdays). [19/07/2011 10:07:52] Error during getDataInt(vipdays). [19/07/2011 10:07:55] Error during getDataInt(vipdays). [19/07/2011 10:07:58] Error during getDataInt(vipdays). [19/07/2011 10:08:01] Error during getDataInt(vipdays). [19/07/2011 10:08:04] Error during getDataInt(vipdays). [19/07/2011 10:08:07] Error during getDataInt(vipdays). [19/07/2011 10:08:10] Error during getDataInt(vipdays). [19/07/2011 10:08:13] Error during getDataInt(vipdays). [19/07/2011 10:08:16] Error during getDataInt(vipdays). [19/07/2011 10:08:19] Error during getDataInt(vipdays). [19/07/2011 10:08:22] Error during getDataInt(vipdays). [19/07/2011 10:08:25] Error during getDataInt(vipdays). [19/07/2011 10:08:28] Error during getDataInt(vipdays). [19/07/2011 10:08:30] GOD DeadAngel has logged out.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...