-
Total de itens
49 -
Registro em
-
Última visita
Tudo que Dantarrix postou
-
Well, Vodkart make it first.... But Vodkart, maybe you dont need to use 3 storages... You only need to calculate lost experience by maths and then register it in 1 table or storage....
-
Aaaaah! So you want: 1. Normal Vocs (Sorcerer, Druid, Paladin, Knight) 2. Promoted Vocs (Master Sorcerer, Elder Druid, Royal Paladin, Elite Knight) 3. Mixed Vocs (Mixed Sorcerer, Mixed Druid, Mixed Paladin, Mixed Knight) ETC?
-
You want a script or a SQL Query to do Number 2? The difference? Script is executed automatically at certain time or in time intervals... SQL Query need's to be manual... xD
-
[Atulizada] Lista Completa De Todos Os Meus Trabalhos Em Script
tópico respondeu ao Makelin1 de Dantarrix em Actions e Talkactions
@up: x2... xD All those scripts were created before.... -
To make a mount system to 8.6- like 8.7+, you need to add sprites (like 15.000), edit sources (a lot) and make some scripts.... So, nobody is going to make mount system for 8.6.... In the other hand, you could use the script that GabrielSv gave to you, it consist on a transformation, so you are "mounting" a wolf or another animal... xD
-
I didnt understand what he said too... :S
-
[Pedido] Magia Que Deixa O Player Ghost
pergunta respondeu ao tharlanthebrave de Dantarrix em Scripts
@up: That's not what he wanted... He wants the player to be GHOST like GODS or CMS, NOT INVISIBLE... xD- 6 respostas
-
- magia que deixa o player ghos
- otserv
- (e 2 mais)
-
[Pedido] Magia Que Deixa O Player Ghost
pergunta respondeu ao tharlanthebrave de Dantarrix em Scripts
I thought on that a time ago, and I have 2 ways to do that: 1º Making a new group, with same caracteristics as a normal player + can be ghost... 2º Editing sources... With the first, only needed is to create new group id, with + flags.... And obviously, the spell script.... Maybe later I do it for you... ^^- 6 respostas
-
- magia que deixa o player ghos
- otserv
- (e 2 mais)
-
I will help you if you explain me better the idea...
-
1º Sorry for writing in English, I dont know Portuguese... 2º For the first system, do you prefer to be used a storage or a SQL Table.... Storages are a lot, but they are limited, table is not.... 3º For the second system, how will them get the vocation? I mean, by action, talkaction, npc, door or other system? Thank you.... I will help you if you answer my 2 questions....
-
Dont worry... And sorry for not talking portuguese.... Im trying to learn it a bit.... And Thank you for rep+... But Im not searching to have rep, Im wanting to find kind people... And I think here is the best place to make some friends...
-
action [Action] Temple Cleaner Automático
tópico respondeu ao 20cm de Dantarrix em Actions e Talkactions
Good Script..... I say the same as Vodkart xD (I understood portuguese!!! :OOOO) xD Continue like that...! -
@up: Thank you... I thought it was for me what you said.... Im chileno... From Chile xD
-
@up: Sorry, but as I said before, I dont understand portuguese..... Your script is better than the first one.... Maybe you can improve it to summon random number of monsters in a random area, fromPos, toPos..... xD
-
So long script.... In resume, this saves the best hits on each skill and make a registration like ranks?
-
@up: I did it a time ago for amiroslo.... Maybe you know him (he's from OTLand...)..... But I dit it on sync and I didnt save it.... So I lose the script... :S LOL! I found the sync, so here is the script: local vocs = {1, 2, 3, 4, 6, 7} function onOutfit(cid, old, current) if isInArray(vocs, getPlayerVocation(cid)) then doPlayerSendCancel(cid, "You cannot change your outfit.") return false end return true end Its a creaturescript..... In local vocs, you need to write what vocations cant change outfits...
-
I think it's easier and better for the user, to be !promo and something more, so I will help a bit with it.... Then, it's only missing the talkaction, maybe I help you with the starting table: local table = { ["mixed"] = {reqVoc=, reqLevel=10000, reqItem=0, reqCount=0, reqMoney=0, newVoc=0, newLevel=8, newMana=, newHp=}, ["spin"] = {reqVoc=, reqLevel=30000, reqItem=0, reqCount=0, reqMoney=0, newVoc=1, newLevel=8, newMana=, newHp=}, ["sacred"] = {reqVoc=, reqLevel=60000, reqItem=0, reqCount=0, reqMoney=0, newVoc=2, newLevel=8, newMana=, newHp=}, ["loney"] = {reqVoc=, reqLevel=110000, reqItem=0, reqCount=0, reqMoney=0, newVoc=3, newLevel=8, newMana=, newHp=}, ["falling"] = {reqVoc=, reqLevel=130000, reqItem=0, reqCount=0, reqMoney=0, newVoc=4, newLevel=8, newMana=, newHp=}, ["hell"] = {reqVoc=, reqLevel=250000, reqItem=0, reqCount=0, reqMoney=0, newVoc=5, newLevel=8, newMana=, newHp=}, ["supreme"] = {reqVoc=, reqLevel=310000, reqItem=0, reqCount=0, reqMoney=0, newVoc=6, newLevel=8, newMana=, newHp=}, ["forgotten"] = {reqVoc=, reqLevel=550000, reqItem=0, reqCount=0, reqMoney=0, newVoc=7, newLevel=8, newMana=, newHp=}, ["nova"] = {reqVoc=, reqLevel=715000, reqItem=0, reqCount=0, reqMoney=0, newVoc=8, newLevel=8, newMana=, newHp=} ["zealot1"] = {reqVoc=, reqLevel=715000, reqItem=0, reqCount=0, reqMoney=0, newVoc=8, newLevel=8, newMana=, newHp=}, ["zealote2"] = {reqVoc=, reqLevel=715000, reqItem=0, reqCount=0, reqMoney=0, newVoc=9, newLevel=8, newMana=, newHp=} } function onSay(cid,words, param, channel) local param = param.explode(param, ",") for k, v in pairs(table) do if (param == k) then if getPlayerVocation(cid) ~= v.reqVoc then doPlayerSendCancel(cid, "You dont have the required vocation.") return false end if getPlayerLevel(cid) ~= v.reqLevel then doPlayerSendCancel(cid, "You dont have the required level.") return false end if v.reqItem ~= 0 then if v.reqMoney ~= 0 then if not(doPlayerRemoveItem(cid, v.reqItem, v.reqCount) and doPlayerRemoveMoney(cid, v.reqMoney) then doPlayerSendCancel(cid, "You dont have the required item or money.") return false end else if not(doPlayerRemoveItem(cid, v.reqItem, v.reqCount) then doPlayerSendCancel(cid, "You dont have the required item.") return false end end end doPlayerSetVocation(cid, v.newVoc) doPlayerSetLevel(cid, v.newLevel) setCreatureMaxMana(cid, v.newMana) setCreatureMaxHealth(cid, v.newHp) doCreatureAddHealth(cid, v.newHp - getCreatureHealth(cid)) doCreatureAddMana(cid, v.newMana - getCreatureMana(cid)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You reset well! You are going to be kicked for security reasons in 5 seconds.") addEvent(doPlayerSendTextMessage, 1000, MESSAGE_INFO_DESCR, "4 seconds.") addEvent(doPlayerSendTextMessage, 2000, MESSAGE_INFO_DESCR, "3 seconds.") addEvent(doPlayerSendTextMessage, 3000, MESSAGE_INFO_DESCR, "2 seconds.") addEvent(doPlayerSendTextMessage, 4000, MESSAGE_INFO_DESCR, "1 seconds.") addEvent(doRemoveCreature, 5000, cid) end return true end I started to do table, and finished doing script..... xD Hope it works.... You only need to modify table.... If you dont want to have required item or money, value = 0 in table Hope you like it and understand me cause I dont know portuguese.... Byebye
-
Try this: data/creaturescripts/scripts/preventDrop.lua: local array = { PLAYERLOSS_CONTAINERS, PLAYERLOSS_ITEMS } function onPrepareDeath(cid, deathList) for i = 1, #array do doPlayerSetLossPercent(cid, array[i], 0) end return true end On creaturescripts.xml: <event type="prepareDeath" name="preventDrop" event="script" value="preventDrop.lua"/> And on creaturescripts/scripts/login.lua, the registration: registerCreatureEvent(cid, "preventDrop")
-
More shorter than the other: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid if(msgcontains(msg, 'travel')) then selfSay('Ola |PLAYERNAME|, me de o item xxx e posso te teleportar. Ok?', cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if(doPlayerRemoveItem(cid, ID DO ITEM,1) == true) then selfSay('Boa Viagem!', cid) talkState[talkUser] = 0 else selfSay('Voc\ê n\ão tem o iten.', cid) talkState[talkUser] = 0 end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) That helps to save some RAM... With 1 script, not too much... But with 30 or 40, you are saving a lot...
-
Nop.... To make objects to be used far away, you need to edit tibia.dat of the client of the server....
-
@up: That will not work, cause the door will stay opened...... function onUse(cid, item, fromPos, itemEx, toPos) if getPlayerLevel(cid) >= 70000 then doTeleportThing(cid, toPos) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need to be level 70k + to pass this door.") end return true end Same action.xml tag than Lucaswc15....
-
@up: That's not what he wants... He wants the player to choose what vocation he will be reset to... Your script only reset to one vocation...
-
Maybe this: local seconds = 60 local outfit = {looktype = , lookhead =, lookbody =, looklegs =, lookfeet = , addons = ,} local condition = createConditionObject(CONDITION_OUTFIT) setConditionParam(condition, CONDITION_PARAM_TICKS, 1000 * seconds) addOutfitCondition(condition, outfit) function onCastSpell(cid, var) doAddCondition(var, condition) end Try please... I'm not sure it will work, but: local seconds = seconds that condition will last (60 = 1 minute) local outfit = outfit params...
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.