- 0
tfs 1.0/1.2 Colocando Descrição ao comprar ITEM
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 23 replies
- 6732 views
-
otserv 10.x Global 10/11.5 + OtherWorld + Hearth of Destruction Quest+ Eventos 1 2 3 4 43
By Qwizer,
- tfs 1.0/1.2
- otserv
- (and 4 more)
- 632 replies
- 197771 views
-
- 2 answers
- 1749 views
-
- 0 answers
- 1700 views
-
- 2 replies
- 1369 views
-

Question
julhinhuu 26
Olá galerinha vim pedir uma ajuda a vocês;
Gostaria de colocar uma descrição ao comprar item por talk, tentei colocar só que até agora não funcionou.
Deem uma olhada:
if(param == "super divine staff") then if getPlayerItemCount(cid, 9971) >= 60 then local bag = doPlayerAddItem(cid, 1997, 1) local new_item = doAddContainerItem(bag, 8922, 1) doItemSetAttribute(new_item, "description", "Este item pode ser adquirido através do shopping. Adquirido dia " .. os.date("%d/%m/%Y - %X") .." por ".. getPlayerName(cid) ..". Serial: ".. getPlayerGUID(cid) ..".") doPlayerRemoveItem(cid, 9971, 60) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você comprou um super divine staff com sucesso.") setPlayerStorageValue(cid,11548,os.time()+30) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end endpois bem não funciona da um erro no [doItemSetAttribute].
Agradeço a ajuda desde já, REP++ '-'
Link to comment
https://xtibia.com/forum/topic/239564-colocando-descri%C3%A7%C3%A3o-ao-comprar-item/Share on other sites
8 answers to this question
Recommended Posts