32
dúvida

Duvida Vip System ( Tiles )

Por 326159487, 26 de jul. de 2012 em Scripts

duvida
tibia
script
otserv
17
3.4k
3261594873
26 de julho de 2012 às 11:03

Tipo do script: Movements (Vip System, Vip Tile )

Protocolo (versão do Tibia): 8.60

Servidor utilizado: TFS 0.3.6

Nível de experiência: Baixa

Adicionais/Informações:

 

Eu uso o system vip Perfect System 2.0

e toda hora aparece erro no Executavel.

 

[26/07/2012 10:55:41] [Error - MoveEvents Interface]

[26/07/2012 10:55:41] data/movements/scripts/vipe.lua:onStepIn

[26/07/2012 10:55:41] Description:

[26/07/2012 10:55:41] (luaDoPlayerSendTextMessage) Player not found

 

Arquivo "Vipe "

 

function onStepIn(cid, item, position, fromPosition)

if item.actionid == 13700 then

 

local config = {

msgDenied = "Você nao e VIP, Para Comprar Escreva !buyvip (6kk)",

msgWelcome = "Seja Bem Vindo a Area vip."

}

 

if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then

doTeleportThing(cid, fromPosition, true)

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied)

doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)

return TRUE

end

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome)

end

return true

end

SkyLighS
26 de julho de 2012 às 11:20

tente assim agora

 

function onStepIn(cid, item, position, fromPosition)
local config = {
msgDenied = "Você não e vip ,para adqrir sua vip fale !buyvip que custa 6KK",
msgWelcome = "Seja Bem Vindo a Area vip."
}
if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then
doTeleportThing(cid, fromPosition, true)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
return TRUE
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome)
return TRUE
end

Editado Julho 26 por SkyLigh

3261594873
26 de julho de 2012 às 11:49

Cara vlw por tentar ajudar, mais não deu não continua mesmo erro.

SkyLighS
26 de julho de 2012 às 11:52

Irei criar um pra você aki agora

 

no max 5 min

 

EDITTTT

 

Aki esta

 

function onStepIn(cid, item, position, fromPosition)
local pos = {x=160, y=54, z=7} -- Pos para onde o player voltara !
if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then
doTeleportThing(cid, pos)
doPlayerSendTextMessage(cid, 22, "desculpe, Voce não e vip")
doSendMagicEffect(getThingPos, CONST_ME_POOF)
return true
end
doPlayerSendTextMessage(cid, 22, "Bem A Area Vip !")
doSendMagicEffect(getThingPos, CONST_ME_HEARTS)
return true
end

Editado Julho 26 por SkyLigh

TchubakaT
26 de julho de 2012 às 12:07

sistemavip.lua

function onStepIn(cid, item, position, fromPosition)

local config = {
msgDenied = "Você nao e VIP compre agora mesmo!",
msgWelcome = "Bem Vindo a area VIP!"
}

if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then
doTeleportThing(cid, fromPosition, true)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
return TRUE
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome)
return TRUE
end

<movevent type="StepIn" actionid="13540" event="script" value="sistemavip.lua"/>

Editado Julho 26 por Tchubaka

3261594873
26 de julho de 2012 às 12:22

Agora dá isso [26/07/2012 12:19:58] [C]: in function 'doSendMagicEffect'

[26/07/2012 12:19:58] data/movements/scripts/vipe.lua:10: in function <data/movements/scripts/vipe.lua:1>

 

@Tchubaka Testando eu edito.

 

@SkyLight não deu cara aparece isso [26/07/2012 12:19:58] [C]: in function 'doSendMagicEffect'

[26/07/2012 12:19:58] data/movements/scripts/vipe.lua:10: in function <data/movements/scripts/vipe.lua:1>

 

Erro = [26/07/2012 12:30:11] [Error - MoveEvents Interface]

[26/07/2012 12:30:11] data/movements/scripts/vipe.lua:onStepIn

[26/07/2012 12:30:11] Description:

[26/07/2012 12:30:11] (luaDoPlayerSendTextMessage) Player not found

Editado Julho 26 por Luiszinvqv

TchubakaT
26 de julho de 2012 às 12:23

@edit

Editado Julho 26 por Tchubaka

SkyLighS
26 de julho de 2012 às 12:24

ixi e mesmo era um erro do effect ja arrumei aki

esta

 

function onStepIn(cid, item, position, fromPosition)
local pos = {x=160, y=54, z=7} -- Pos para onde o player voltara !
if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then
doTeleportThing(cid, pos)
doPlayerSendTextMessage(cid, 22, "desculpe, Voce não e vip")
return true
end
doPlayerSendTextMessage(cid, 22, "Bem A Area Vip !")
return true
end

 

meu ta funcionando perfeitamente. hum.

 

Tchubaka desculpe mas teria que lhe reporta por flood ! ele falo que jaja iria falar !

se tava ou nao .

3261594873
26 de julho de 2012 às 12:48

Galera continua dando ainda o error [26/07/2012 12:48:22] data/movements/scripts/vipe.lua:onStepIn

[26/07/2012 12:48:22] Description:

[26/07/2012 12:48:22] (luaDoPlayerSendTextMessage) Player not found

SkyLighS
26 de julho de 2012 às 12:53

como voce colocou no movements.xml ?

TchubakaT
26 de julho de 2012 às 13:06
<movevent type="StepIn" actionid="13540" event="script" value="vip.lua"/>

KydraiK
26 de julho de 2012 às 13:18

Provavelmente é porque um monstro ou npc ta pisando no tile.

Vocês precisam parar de ficar inventando formas de fazer o script e notar onde está o erro '-'

 

function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) and item.actionid == 13700 then
 local config = {
 msgDenied = "Você nao e VIP, Para Comprar Escreva !buyvip (6kk)",
 msgWelcome = "Seja Bem Vindo a Area vip."
 }
 if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then
  doTeleportThing(cid, fromPosition, true)
  doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied)
  doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_BLUE)
  return true
 end
 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome)
end
return true
end

o and item.actionid == 13700 pode ser desnecessário se o xml estiver com actionid="13700".

Se der erro no doSendMagicEffect pode tirar a linha dele ou tentar mudar o getThingPosition(cid).

Editado Julho 26 por kydrai

3261594873
26 de julho de 2012 às 13:18

Valeu Tchubaka REP +

TchubakaT
26 de julho de 2012 às 13:22

o err era o seguinte. meu tava sistemavip.lua dele era vip.lua entao era so mudar.

 

 

 

Duvida Sanada.

SkyLighS
26 de julho de 2012 às 13:44

duvida sanada

reportado