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

Lua How i set pk player

gmstrikker

Well-Known Member
Joined
Jul 30, 2014
Messages
458
Solutions
1
Reaction score
50
I need know how to set players PK to 15 min, without they kill people...

1- Tile give PK
2- On atk monster, Archangel give PK to player
3- Monster spell to put on Angel (monster) to give he pk (spell area as exevo gran mas vis)

Any know how to do it on 0.4?
 
1- Tile give PK
Code:
function onStepIn(cid, item, position, fromPosition)
    if isPlayer(cid) then
       doCreatureSetSkullType(cid,3)
    end 
end

2- On atk monster, Archangel give PK to player
Code:
function onCombat(cid, target)
if isPlayer(cid) and isMonster(target) then
if getCreatureName(target) == "Archangel" then
    doCreatureSetSkullType(cid,3)
end
end
return true
end
I need know how to set players PK to 15 min, without they kill people...
about this make storage in my codes then make script onThink() to check player storage
 
Last edited:
I try use it to test
\/
(dont work nothing)

Code:
function onCombat(cid, target)
if isPlayer(cid) and isMonster(target) then
if getCreatureName(target) == "Archangel" then
doCreatureSetSkullType(cid,3)
end
end
return true
end

Code:
<event type="combat" name="PkOnCastle" event="script" value="pkonbattlecastle.lua" />
 
Back
Top