• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. Guiaki

    Lua Rookgaard

    just remembering, in account manager you can change the position of the CREATED PLAYERS to the main temple instead of rookgaard, like this: accountManager = true namelockManager = true newPlayerChooseVoc = true *<-- newPlayerSpawnPosX = 1218 <<--- newPlayerSpawnPosY = 1038 <<---...
  2. Guiaki

    Lua Monk:(

    well, since its a MoveEvent: function onStepIn(cid, item, position, fromPosition) for i = 17000, 17122 do local pos = getThingPos(item.uid) if not isPlayer(getTopCreature(pos).uid) then doTeleportThing(cid, pos) doCreatureSay(cid, 'Do not use any tool to skill.', 19, false...
  3. Guiaki

    Lua onStatsChange - help in the code

    Okay, i fixed it all, now when player attacks monster i can do something for they, but now i wanted to make a damage reflect system, and well using the same function i did this if not isMonster(attacker) then else doCreatureSay(attacker, "I am the attacker") if getCreatureStorage(cid,989878)...
  4. Guiaki

    Lua onStatsChange - help in the code

    of course lol
  5. Guiaki

    Lua onStatsChange - help in the code

    Okay, I put this in every monster I wanted to work: just before </monster> I tested it, changed the damage and put a very big one just to make sure it was working, but now I can't make the players say stuff like: doCreatureSay(cid or attacker, "I am cid/attacker) just to know where i can...
  6. Guiaki

    Lua onStatsChange - help in the code

    how could that? i UNregistred lol :I ----edit---- ohh got it, i forgot the part to register in monster, ok i will try
  7. Guiaki

    Spells crash TFS 0.3.6pl1

    Well, I wasn't supposed to say this, I like TFS a lot but my premium time in the website is over so I can choose to use the open version that is really unstable or I can use another server that I know, but no offense to TFS its a really nice job. But you should go with crystal server, its is...
  8. Guiaki

    Lua getPlayerCap

    function getPlayerCap(cid) local v = db.getResult("SELECT `cap` FROM `players` WHERE `id` = "..getPlayerGUID(cid)..";") local cap = v:getDataInt("cap", getPlayerGUID(cid)) return cap end Tested and working, but it will send the player max capacity, know this. I'll be glad if you rep++ :D
  9. Guiaki

    Lua onStatsChange - help in the code

    okay but it will still be the same thing, only if when monster attack they become the attacker :S ----edit---- i tested it, and still the same thing, player becomes the cid and the monster is the attacker. if i want to do something to happen when i a player attacks a monster it doesn't work at...
  10. Guiaki

    Lua onStatsChange - help in the code

    even tho i register it for every monster who i could know when they are the one attacking or don't? '-', can't you give me the right direction to try? thanks for helping :D you rock ;p
  11. Guiaki

    Lua onStatsChange - help in the code

    this is the script changed and everthing , it is working 90% for PlayerxPlayer (just the issue that i have in the last post) function onStatsChange(cid, attacker, type, combat, value) local reset = getReset(cid) if isPlayer(attacker) then local reset = getReset(attacker) if type ==...
  12. Guiaki

    Lua Attack damage base increase

    okay, it works but not in the way I wanted, it corrected the problem of the infinite looping, but if a monster attack me it will hit me a extra damage based on my resets, how can i change that?
  13. Guiaki

    Lua onStatsChange - help in the code

    BumP, sorry i need it really bad ;x -------------edit-------------- doTargetCombatHealth(attacker, cid, COMBAT_UNDEFINEDDAMAGE, -value, -value, CONST_ME_DRAWBLOOD) will deal the -value to the player, but there is no message popping up that he lost that damage like a red -500 going up when hit...
  14. Guiaki

    Lua onStatsChange - help in the code

    its not working... first it doesn't hit the enemy and i already changed to -value. second, monsters hit will be based in the script as well, i want only to the players scripts be based on that. last when you hit once it will go into a infinite loop inside the script, because you hit like 10...
  15. Guiaki

    Lua onStatsChange - help in the code

    okay, darkhaos gave me the lets say initial part of the code, I changed it all and okay, i'll show you everthing: function onStatsChange(cid, attacker, type, combat, value) if isPlayer(attacker) then if type == STATSCHANGE_HEALTHLOSS then if combat == COMBAT_PHYSICALDAMAGE then...
  16. Guiaki

    Lua Attack damage base increase

    I need help fast!! please, it worked and everthing but keeps popping up this in console: [ERORR - CretureEvent::executeStatsChange] Call stack overflow.
  17. Guiaki

    Little help with attack damage

    SORRYYY please remove this post, I posted in the wrong topic
  18. Guiaki

    Lua Attack damage base increase

    thanks darkhaos, you really helped me
  19. Guiaki

    Lua Attack damage base increase

    i didn't but it still works, do i have to register it?
  20. Guiaki

    Lua Attack damage base increase

    Hey, thanks but its not working :S it don't results in error but it doesn't work ;/ -----edit----- nvm, it works xD thanksss!!!
Back
Top