Histórico de Curtidas
-
snajiw deu reputação a luanluciano93 em [PEDIDO] Talkaction !promoteTesta essa amigo ...
local config = { PROMOTION_1_LVL = 20, PROMOTION_1_COST = 20000, PROMOTION_2_LVL = 100, PROMOTION_2_COST = 100000 } function onSay(cid, words, param, channel) if getPlayerVocation(cid) >= 1 or getPlayerVocation(cid) <= 4 then if getPlayerLevel(cid) >= config.PROMOTION_1_LVL then if doPlayerRemoveMoney(cid, config.PROMOTION_1_COST) == true then doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doSendMagicEffect(getCreaturePosition(cid), 14) doPlayerSendTextMessage(cid, 18, "You are promoted!") else doPlayerSendTextMessage(cid, 18, "You need "..config.PROMOTION_1_COST.." golds to promote.") end else doPlayerSendTextMessage(cid, 18, "You need level "..config.PROMOTION_1_LVL.." to promote.") end elseif getPlayerVocation(cid) >= 5 or getPlayerVocation(cid) <= 8 then if getPlayerLevel(cid) >= config.PROMOTION_2_LVL then if doPlayerRemoveMoney(cid, config.PROMOTION_2_COST) == true then doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doSendMagicEffect(getCreaturePosition(cid), 14) doPlayerSendTextMessage(cid, 18, "You are promoted!") else doPlayerSendTextMessage(cid, 18, "You need "..config.PROMOTION_1_COST.." golds to second promote.") end else doPlayerSendTextMessage(cid, 18, "You need level "..config.PROMOTION_1_LVL.." to second promote.") end else return false end return true end Para configurar é no começo do script ...
-
-
-
snajiw deu reputação a llucas75 em [Ajuda Rep+]Isso é erro do editor teste agora...
Eu só apaguei a primeira linha e rescrevi ela kkkkk
-
snajiw deu reputação a macalo em [Ajuda Rep+]data/npc/NpcName.xml
<?xml version="1.0" encoding="UTF-8"?> <npc name="NpcName" script="data/npc/scripts/NpcName.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="96" head="0" body="0" legs="0" feet="0" addons="0"/> </npc>
data/npc/NpcName.lua
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid)end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid)end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg)end function onThink() npcHandler:onThink()end function npcPromotion(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if (isPremium(cid)) then if (getPlayerLevel(cid) >= 100) then if (getPlayerVocation(cid) >= 5 and getPlayerVocation(cid) <=8) then if doRemoveItem(cid, 9971, 1) then doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doPlayerSendTextMessage(cid, 20, "Voce é um ".. getPlayerVocationName(cid) .."!") else doPlayerSendTextMessage(cid, 20, "Voce nao possui o item desejado!") end else doPlayerSendTextMessage(cid, 20, "Voce não possui a promotion anterior ou já esta promovido.") end else doPlayerSendTextMessage(cid, 20, "Voce nao possui level para ser promovido.") end else doPlayerSendTextMessage(cid, 20, "Voce nao possui premmium account.") end end local node1 = keywordHandler:addKeyword({'high promotion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promotion you if you give me a '.. getItemName(9971) ..'. Do you want me to promote you?'}) node1:addChildKeyword({'yes'}, npcPromotion, {}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then.', reset = true}) npcHandler:addModule(FocusModule:new()) em troca de um item (ID = 9971). mais qual quer coisa so editar no scrit o id do iten
-
snajiw deu reputação a Danihcv em Ajuda com ForgottenserverSim. Vc soh teria que configurar o config.lua novamente, eh claro.
-
snajiw deu reputação a Danihcv em Ajuda com ForgottenserverBaixa outro ot que tenha e pegue as dll's e o executável. Ou procura por: source 8.4 aqui no forum.
-
snajiw deu reputação a llucas75 em Me ajudem com esses ScriptsPoste seu vocations.xml(esse do npc não sei se consigo, mas pelo menos deixo uma boa base) mas os outros faço pra ti de boa....
Troca de itens por promote
Base VV(está imcompleto só estou deixando aqui caso alguém ajude também) E posta seu vocations.xml
Item que troca de sexo VV
escolher a vocation V
Vc consegue montar as tags ne?
diga a posição do seu templo...
Pensando que vc não irá conseguir montar as tags kkk vamos lá...(só do npc que não esta completo não postarei)
actions.xml
Obs: Se qualquer script apresentar algum erro me avise que eu arrumo .
Obs2:não se esqueça de passar o vocation.xml que acho que consigo arrumar pra ti até o do npc e me fale como vc quer ele..
Obs3:lembrando que vc pode fazer qualquer alteração... mas vc deve ter um conhecimento básico de scripting.
Changesex.lua
tag
talkaction.xml
Leia os comentários e editem a vontade os scripts..