1 hora atrás, adrianokk disse:Bom dia, Gostaria de saber se é possível colocar está função dentro de um NPC de Shop. para que todos os Itens que ele venda sejam "Unique"
doItemSetAttribute(item.uid, "unique", 1)
ou
getItemAttribute(thing.uid, "unique") then
O tipo que NPC em que eu estou tentando colocar esta função é esse aqui
<?xml version="1.0" encoding="UTF-8"?><npc name="Craft Seller" script="default.lua" walkinterval="0" floorchange="0" speed="0"><health now="150" max="150"/><look type="2246" head="10" body="15" legs="20" feet="25"/><parameters><parameter key="message_greet" value="Olá, Eu posso lhe vender equipamentos para craftar itens, Se tiver interesse fale {trade}!"/><parameter key="module_shop" value="1"/>
<parameter key="shop_buyable" value= "
Craft Potion,17179,5000000;Craft Ball,17180,5000000;Craft House,17181,5000000;Coletor,17182,1000000;Machadinha,2441,1000000;Picareta,2553,1000000;"/><parameter key="shop_sellable" value= "Green token,15645,1000000;</parameters>
</npc>
Não é no XML que configura o scipt dele, mas sim no arquivo.lua.




info
Grupo: Artesão
Registrado: 15/03/07
Posts: 106
Reputação: +1
Gênero: Masculino
Bom dia, Gostaria de saber se é possível colocar está função dentro de um NPC de Shop. para que todos os Itens que ele venda sejam "Unique"
doItemSetAttribute(item.uid, "unique", 1)
ou
getItemAttribute(thing.uid, "unique") then
O tipo que NPC em que eu estou tentando colocar esta função é esse aqui