• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

CreatureEvent [OWNED PK SCRIPT] All Version TFS Player Kill

GM Denniz

Website- Designer- Mapper
Joined
Jan 1, 2012
Messages
62
Reaction score
2
Location
Stockholm
This Work trust me

Comment if you like

1 STEP. Go To creaturescripts/scripts/

Create 1 File topfrags.php

Lua:
  local function  sendLetter(p)
        local pos = p.pos
        local letter = p.letter
        doSendAnimatedText(pos, letter, TEXTCOLOR_BLUE)
end

function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
        local letters = {"O", "W", "N", "E", "D", "!"}
        for i = 1, #letters do
                addEvent(sendLetter, i * 150, {pos = getCreaturePosition(cid), letter = letters[i]})
        end
        return true
end

2 STEP. Go now in creaturescripts/scripts/login.lua add

Lua:
	registerCreatureEvent(cid, "PWNED")

3 STEP. Go now in creaturescripts.xml and add

Lua:
 <event type="preparedeath" name="PWNED" event="script" value="owned.lua"/>
 
Haha, GM Denniz, why can you.not make a own.script. Stop steal others script? Make a own script oki?
 
Hahah man see i dont have say that was My script and you are so retard .
And I give the script for players need I don't steal sorry I'm not noob but you are noob. And shut up fuc.....
 
Nice flaming skills.
Rather spend your time giving credits.
 
Really? Arguing over credits for this? Jesus.

And this won't work... probably something in the logs about unable to open the file owned.lua. Wonder what the hell that topfrags.php file is doing outside of /var/www... oh well. Let's simplify this.

BETTER GIVE CREDITS FOR THIS EVERYWHERE OR I KILL j00! MOST COMPLEX CODE I EVAR WROTE!!1!!!one!!

Excuse me, bout of noobitis.. Purely in the Creature Scripts index XML, aka creaturescripts.xml
Code:
    <event type="login" name="silly_effect"  event="buffer" ><![CDATA[
registerCreatureEvent(cid, "owned_effect") ; 
_result = true ; 
    ]]></event>

    <event type="preparedeath" name="owned_effect" event="script" ><![CDATA[
function onPrepareDeath(cid, deathList)
    local function sendLetter(p)
        local pos, letter = p.pos, p.letter ; 
        doSendAnimatedText(pos, letter, TEXTCOLOR_BLUE) ; 
    end ; 

    local letters = { "O", "W", "N", "E", "D", "!" } ; 
    for i = 1, #letters do 
        addEvent(sendLetter, i * 150, { pos = getCreaturePosition(cid), letter = letters[i] }) ; 
    end ; 
    return true ; 
end ; 
    ]]></event>
 
Back
Top