GE
talkaction

Post System

Por Gears, 12 de abr. de 2013 em Actions e Talkactions

i like unicorns
problem?
bitch
post
systemxtibia
xtoba
12
1.3k
GearsG
12 de abril de 2013 às 15:56

Caraio maluco, sumiu tudo e agora? Motivo? Expirou o video.

Editado Maio 11 por Gears

ThiagoBjiT
12 de abril de 2013 às 16:04

Muito bom mano! Parabéns!

Seria show se você posta-se o UPDATE dele que no caso seria assim: Em vez de cobrar money para postar, o player teria que ter uma certa "storage" para poder usar o comando.

 

Até mais, mano! :)

 

Você já atingiu seu limite de reputações positivas para hoje

RoksasR
12 de abril de 2013 às 16:10

Booa, testei ta legalzin :)

 

Se quiser dar uma mudadinha, identei para tu :)

 

http://pastebin.com/W395NRRx

Editado Abril 12 por Roksas

GearsG
12 de abril de 2013 às 16:11

Haha, obg roksas por identar, eu identei no Notepad++ mas na hora de botar no xtibia, ela quebrou o.O

Editado Abril 12 por Gears

LuckOakeL
12 de abril de 2013 às 18:38

Booa, testei ta legalzin :)

 

Se quiser dar uma mudadinha, identei para tu :)

 

http://pastebin.com/W395NRRx

 

A identação tá errada. O certo seria assim:

 

local wait = 60

function onSay(cid, words, param)
   if exhaustion.check(cid, 9854) then
       doPlayerSendTextMessage(cid, 20, "You need to wait "..wait.." segs to use this command again!")
       return true
   end
   if not doPlayerRemoveMoney(cid, 15000) then
       doPlayerSendCancel(cid, "Not enough money, sorry.")
       return true
   end

   doSendMagicEffect(getCreaturePosition(cid), 6)
   exhaustion.set(cid, 9854, wait)
   broadcastMessage("Mensagem do jogador: "..getPlayerName(cid).." ele diz "..param.."")
return true
end

 

@Topic

 

Tá evoluindo :D

 

Já já você começa a dominar e fazer uns sistemas bem maneiros. REP+.

SkymagnumS
12 de abril de 2013 às 18:45

Pô roksas que identação é essa velho?, script maneiro.

RoksasR
12 de abril de 2013 às 18:50

Cara, foi assim que aprendi, você usa 1 tab depois de tudo, e volta 1 em ends e untils.

Em tables você só da 1 tab nas variáveis dela.

GearsG
12 de abril de 2013 às 19:25

Haha, obg LuckOake, futuramente irei postar uns sisteminhas melhores, tava pensando em atualizar esse post system para um npc, ou precisar de um papel e caneta pra mandar esse broadcast :)

SkymagnumS
12 de abril de 2013 às 20:26

Poderia fazer um por textEdit ficaria bem legal, tipo assim.

 

local mainConfig = {
priceForEachMsg = 10000,
   textConfig = {
       maxLen = 10,
       itemId = ?,
       },
}


function onTextEdit(cid, item, newText)

   if item.itemid ~= mainConfig.textConfig.itemId then
       return true
   end

   if string.len(newText) > mainConfig.textConfig.maxLen then
       doPlayerSendTextMessage(cid, 27, "Sorry, your text is too big.") return true
   end

   if doPlayerRemoveMoney(cid, priceForEachMsg) then
       doBroadcastMessage(getCreatureName(cid) .. ": " .. newText, 25)
          else
       doPlayerSendCancel(cid, "You don't have money.")
   end
   return true
end

Editado Abril 12 por Skymagnum

SlicerS
12 de abril de 2013 às 20:54

@rok

quem foi o loko q te insino isso? LOL LOL LOL n percebe q desse jeito fica uma bagunça o.O

RoksasR
12 de abril de 2013 às 20:58

SkyenHasus :)

SlicerS
16 de abril de 2013 às 11:27

opa, fudeu... esquece oq flei kkkkkkk

Editado Abril 16 por Slicer