RO

[Resolvido] Bug Inquisition (Global 9.52)

Por rodrygosos, 13 de mai. de 2012 em Scripts

9.52
script
20
17.4k
oktober15O
14 de maio de 2012 às 13:11

aqui tem.. http://www.xtibia.com/forum/topic/165796-bank-system-d/

rodrygososR
14 de maio de 2012 às 14:12

Vlw novamente mano, agora eu to com um problema grave, quando o player morrer não aparece a morte, nem na database nem no site ;/

 

e como resolvo esse erro, ta dando na talkactions das mounts

 

 

[13:34:33.428] > Loading talkactions... [Error - LuaInterface::loadFile] data/talkactions/scripts/mount.lua:3: unexpected symbol near '['

[13:34:33.428] [Error - Event::checkScript] Cannot load script (data/talkactions/scripts/mount.lua)

[13:34:33.428] data/talkactions/scripts/mount.lua:3: unexpected symbol near '['

[13:34:33.499] done.

[13:34:43.705] > Loading movements... done.

 

o script da mount

 

function onSay(cid, words, param)

 

local table = {

["widow queen"] = {price = 0, id = 1},

["racing bird"] = {price = 0, id = 2},

["war bear"] = {price = 0, id = 3},

["black sheep"] = {price = 0, id = 4},

["midnight panther"] = {price = 0, id = 5},

["draptor"] = {price = 0, id = 6},

["titanica"] = {price = 0, id = 7},

["tin lizzard"] = {price = 0, id = 8},

["blazebringer"] = {price = 0, id = 9},

["rapid boar"] = {price = 0, id = 10},

["stampor"] = {price = 0, id = 11},

["undead cavebear"] = {price = 0, id = 12},

["donkey"] = {price = 0, id = 13},

["tiger slug"] = {price = 0, id = 14},

["uniwheel"] = {price = 0, id = 15},

["crystal wolf"] = {price = 0, id = 16},

["war horse"] = {price = 0, id = 17},

["kingly deer"] = {price = 0, id = 18},

["tamed panda"] = {price = 0, id = 19},

["dromedary"] = {price = 0, id = 20},

["sandstone scorpion"] = {price = 0, id = 21},

["rented horse"] = {price = 0, id = 22},

["fire war horse"] = {price = 0, id = 23},

["shadow draptor"] = {price = 0, id = 24}

["rented horse"] = {price = 0, id = 25},

["rented horse"] = {price = 0, id = 26},

["ladybug"] = {price = 0, id = 27},

["manta ray"] = {price = 0, id = 28}

}

 

local msg = {"You have to choice one: donkey,manta ray,ladybug,rented horse,shadow draptor,fire war horse,rented horse,sandstone scorpion,dromedary,tamed panda,kingly deer,crystal wolf,war horse,uniwheel,tiger slug,widow queen,racing bird,war bear,black sheep,midnight panther,draptor,titanica,tin lizzard,blazebringer,rapid boar,stampor,undead cavebear", "You dont have Mount Doll..", "Not A Good Param..", "Full Mount Set sucesfully added..","You already got this mount"}

local param = string.lower(param)

local t = table[param]

 

 

if(getPlayerItemCount(cid, 16107) > 0) then

if(param ~= "" and t) then

if t and not getPlayerMount(cid, t.id) then

doPlayerRemoveItem(cid, 16107, 1)

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)

doPlayerAddMount(cid, t.id)

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[5])

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])

end

 

end

oktober15O
14 de maio de 2012 às 14:59

esse bug das mortes nao sei dizer asim, talves seja a tabela de mortes da database, procure por alguma e execute no phpmyadmin..

 

facil, voce esqueceu de uma virgula kk.

function onSay(cid, words, param)

 

local table = {

["widow queen"] = {price = 0, id = 1},

["racing bird"] = {price = 0, id = 2},

["war bear"] = {price = 0, id = 3},

["black sheep"] = {price = 0, id = 4},

["midnight panther"] = {price = 0, id = 5},

["draptor"] = {price = 0, id = 6},

["titanica"] = {price = 0, id = 7},

["tin lizzard"] = {price = 0, id = 8},

["blazebringer"] = {price = 0, id = 9},

["rapid boar"] = {price = 0, id = 10},

["stampor"] = {price = 0, id = 11},

["undead cavebear"] = {price = 0, id = 12},

["donkey"] = {price = 0, id = 13},

["tiger slug"] = {price = 0, id = 14},

["uniwheel"] = {price = 0, id = 15},

["crystal wolf"] = {price = 0, id = 16},

["war horse"] = {price = 0, id = 17},

["kingly deer"] = {price = 0, id = 18},

["tamed panda"] = {price = 0, id = 19},

["dromedary"] = {price = 0, id = 20},

["sandstone scorpion"] = {price = 0, id = 21},

["rented horse"] = {price = 0, id = 22},

["fire war horse"] = {price = 0, id = 23},

["shadow draptor"] = {price = 0, id = 24},

["rented horse"] = {price = 0, id = 25},

["rented horse"] = {price = 0, id = 26},

["ladybug"] = {price = 0, id = 27},

["manta ray"] = {price = 0, id = 28}

}

 

local msg = {"You have to choice one: donkey,manta ray,ladybug,rented horse,shadow draptor,fire war horse,rented horse,sandstone scorpion,dromedary,tamed panda,kingly deer,crystal wolf,war horse,uniwheel,tiger slug,widow queen,racing bird,war bear,black sheep,midnight panther,draptor,titanica,tin lizzard,blazebringer,rapid boar,stampor,undead cavebear", "You dont have Mount Doll..", "Not A Good Param..", "Full Mount Set sucesfully added..","You already got this mount"}

local param = string.lower(param)

local t = table[param]

 

 

if(getPlayerItemCount(cid, 16107) > 0) then

if(param ~= "" and t) then

if t and not getPlayerMount(cid, t.id) then

doPlayerRemoveItem(cid, 16107, 1)

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)

doPlayerAddMount(cid, t.id)

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[5])

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])

end

 

end

 

vou te perguntar uma coisa por pm, ve la

Editado Maio 14 por öKTöBëR

rodrygososR
14 de maio de 2012 às 15:06

Vlw ae vou testar e mais tarde te falo se pego a firewolk e o mount. dai sobre as deaths ja troquei da database :S mesmo assim n ta dando, e tipo não recebi sua pm não

oktober15O
14 de maio de 2012 às 15:21

queria sabe se vc tem as novas areas, gray island etc. e se pode me passar