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

Need frag reward for 8.60 and help in poi

Ripags

Experienced Member
Joined
Sep 14, 2009
Messages
217
Reaction score
4
Location
Exiva ;P
Like its says on title i need some scripts for frags reward in 8.60 if anyone have's it ill be pleased.
Secondly i need perfect scripts for poi fire i dontt know if u undesrtand what i mean but i mean those fire that are diferent for the 4 vocations..
Thanks for listening
 
bump! D;
I just need a good link to a tested frag reward(like a trphy awarded for killing someone) that functions for 8.60 server
Thanks
 
data/creaturescripts.xml
XML:
<event type="death" name="Reward" event="script" value="reward.lua"/>

login.lua add
LUA:
registerCreatureEvent(cid, "Reward")

data/creaturescripts/scripts/reward.lua
LUA:
function onDeath(cid, corpse, deathList)
   if isPlayer(cid) then
      local v = { killer_name = getCreatureName(deathList[1]), killer_level = getPlayerLevel(deathList[1]), target_name = getCreatureName(cid), target_level = getPlayerLevel(cid) }
      local reward = doPlayerAddItem(cid, 5785, 1)
      doItemSetAttribute(reward, "description", "" .. (getPlayerSex(cid) == 0 and "She" or "He") .. " kill to " .. v.target_name .. " at level " .. v.target_level .. " by " .. v.killer_name .. " who was level " .. v.killer_level .. " at the time. " .. (getCreatureSkullType(cid) <= SKULL_GREEN and "[Unjustified]" or "[Justified]"))
      doItemSetAttribute(reward, "name", " " .. v.killer_name .. " 's Medal ")
   end
   return true
end

Credits for the script goes to:
Aliubask
 
Back
Top