• 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!

CreatureEvent Frag Reward: Trophy? Heart? Both? You Choose!

J.Dre

Unity Games
Joined
May 18, 2011
Messages
2,647
Solutions
3
Reaction score
648
Location
United States
Hello again!

Today I am sharing my latest frag reward script. There are other scripts released on this forum, even ones that may work, but I added some extra features.
This script allows you to enable or disable, trophies and heart's as rewards. Hopefully you enjoy the convenience within this script.

Tested on The Forgotten Server 0.3.7 (aka. 0.4)

Level: 8 - 99
bct3m.gif

Level: 100 - 199
hsolg0.gif

Level: 200 - ???
ih0ept.gif

Or the optional Heart!
219coc1.gif


I've changed it so the trophy is added to the backpack instead. These images are inaccurate on that part. ^_^
s0vh51.png
wjyz4p.png


Update Log:

    • [v1.0] - Release
      Added a user-friendly config.
      Added the ability to switch between frag rewards.
    • [v1.1] - Fix / Repair
      Fixed a small typo with the Heart's name.
      Added a missing "=" on line 19.
    • [v1.2] - Upgrade / Fix / Repair
      Fixed the problem with it making multiple rewards.
      Added an option in the config to choose how many people get rewarded.
data/creaturescripts/scripts/login.lua
Code:
registerCreatureEvent(cid, "Frag Reward")

data/creaturescripts/creaturescripts.xml
Code:
<event type="death" name="Frag Reward" event="script" value="frag_reward.lua"/>

data/creaturescripts/scripts/frag_reward.lua

Frag Reward.lua - PasteBin.com

"Special thanks to Zatjin for assistance with testing."

J.Dre
 
Last edited:
Using! Cant wait to test it :)
 
I also found it didnt work on TFS 0.4, rev 3884
 
it doesn't work on tfs 0.4 =/ damn.
You shouldn't even have TFS 0.4. :ninja:

---

It works for me, and I'm using the latest revision of TFS 0.4 (known as 0.3.7 now).

Maybe some functions changed. Take a look at your "doc/lua_functions" file and compare them.
 
would work on 0.3.6pl1?

Not as is. You will need to change a few functions.

@down,

No. It really isn't hard. You just need to backspace a few letters and replace them.

Open your "doc/lua_functions" file and compare/contrast the functions, from the script.
 
Anyone get this working for 3884, let me know. I'd greatly appreciate it.. im also working with it to get it working, ill post it if I do.
 
Back
Top