Okey this, works fine <3 will test.http://pastebin.com/fW8t7Y7f
instead of making the chance configurable for each vein i kept it as a constant in config but the chance increases as you level up your skill
the formula is: cfg.chance + (skillLevel / 2)
i also made the skill tries based off of your skill level
the formula is: math.random(3000, 5000) / skillLevel
i saw your thread and would have replied if i knewHello, I am doing an OT server with my friend with The Forgotten Server 1.3 and we are thinking in doing several vocations and change the "starter" vocations. Doing the new vocations is not hard and there plenty of tutorials and threads to add new vocations but what we are trying to do is to separate weapons types for some of the vocations. For example we want the skills to look like this:
-Fist(the skill is already in game)
-One Handed Club
-One Handed Axe
-One Handed Sword
-Two Handed Club
-Two Handed Axe
-Two Handed Sword
-Archery(uses bows and crossbows)
-Throwing(assassins stars, stars, spears, etc)
-Shielding
-Staves
-Sceptres
-Shielding(skill already in game)
so is it possible to do? I saw a thread by @Codex NG name Spell Experience that he says it is possible to use in different ways and I think it can be used like that and I do understand a little the code but I'm not sure if that is the only thing to do? I was also thinking in declaring the weaponTypes in items.xml or make a lua that items.xml grabs the new weapontypes. I saw something about weapon types in game.lua in the core folder but I dont know if what I did there is something missing or whatever I add to game.lua nothing changes because it is the core of the game.I tried to add the skills to the database too but we got errors haha. Will wait for someone to reply and I will greatly appreciate if you could explain in a detailed way if it is possible or not. I will hope that it is Thank you
PS: I also I know that the client cant be edited or at least in The Forgotten Server but we can use ModalWindows to see the skills. I already did that to show the skills
If I didnt explain myself that much just tell me and I can send you a private message or here to explain it in detail. Thank you
Ok, what we are thinking also to do is that restrict weapons to each vocation. For example a Knight wont be able to use Rods, wands and anything distance, same for sorcerer anything that a knight or paladin would use and a new vocation that we will add to use two handed club weapons. Is that possible to do? or also impossible? Thank youi saw your thread and would have replied if i knew
sorry
elseif offer_type == 'addon' then
player:addOutfitAddon(item_id, 3)
player:addOutfitAddon(item_count, 3)
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'You received '.. item_name ..' addons.')
elseif offer_type == 'mount' then
if player:hasMount(item_id) then
db.query("UPDATE `accounts` SET `premium_points` = `premium_points` + '".. price .."' WHERE `id` = '" .. player:getAccountId() .. "';")
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'You already have the '.. item_name .. ' mount, your points have been returned.')
else
player:addMount(item_id)
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'You received the '.. item_name ..' mount.')
learning so not much :^)What are you capable of doing in c++?
nice removal xddddddddddddIt'd be appropriate if all posts are on topic, and all rules that xeraphus specified are fulfilled before posting. Otherwise this is just another shit post thread.
It's not necessary to have a discussion about this. I'll report my own post and have it removed tomorrow
https://otland.net/threads/tfs-1-x-kd-ratio.227521/Another one couple for you. The old k/d ratio scripts? All have been lost or are outdated since tfs 1.0 maybe you could redo them?
Also would be cool if you could make a script where a player gains an item when he kills another player?
requires lots of source editing, even changing monster name in game doesn't save i believe (it switches back whenever it leaves your sight)I want to request a script that I don't really know is possible. What I want is a command (maybe more funtions added to /attr) that would modify a certain monster's attacks, armor, name, flags, etc.. in-game. Like for example, I'd summon an Orc, rename is as Garrosh, and give it increased armor and attack.
Is that possible? mybe it would be a talkaction?