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

TalkAction Pvpmode options

leonardo123

New Member
Joined
Jul 10, 2008
Messages
90
Reaction score
0
Here's The Script For Change PvP InGame
This Script Works With Optional Pvp Script
Go To Data/Talkactions/Tlkactions.xml Go To
Code:
	<talkaction words="!online" event="script" value="online.lua"/>
And Paste The Next Code After This
Code:
<talkaction words="!pvp" event="script" value="pvpmode.lua"/>

then go to Talkactions/Scripts/ And Make A New File Named pvpmode.lua
Then Paste This Inside
Code:
function onSay(cid, words, param, channel)
	local playerSkull = getPlayerSkullType(cid)
	local p = string.explode(param, ',')
	if(param == "") then
		doPlayerSendCancel(cid, "command requieres param") 
		return true
	end

	if (param == "on") and getCreatureSkullType(cid) == SKULL_NONE getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE then
        setPlayerPVPMode(cid, 1)
			doSendAnimatedText(getPlayerPosition(cid), "PVPON!", 180)
	end

	if(param == "off") and playerSkull == SKULL_NONE 
getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE then
        setPlayerPVPMode(cid, 0)
			doSendAnimatedText(getPlayerPosition(cid), "PVPOFF!", 180)
	end
            return FALSE
    end
end

Then Say /reload Talkactions And Its Ready :D

Explain:
When You Say !pvp on Your Pvp Mode Will Be Channged To 1
And When You Say !pvp off Your Pvp Mode Will Be Channged To 0
It Don't Channge If You Have Pz Or Any PK.
Please Leave Comments And If You Want Give Me Some Reputation :p

Credits To Me!!!
 
Last edited:
I don't think this will work. ^_^
Can you try looking it over and fix what you did wrong?
 
db.executeQuery("UPDATE `players` SET `pvpmode` = 0 WHERE `id` = ??????????? ")
 
Lol, author is 100% normaly? this script don't works and it's made better many time ago...
If you read Sync's post you can see... Him code for www using functions from my system : )

http://otland.net/f81/pvp-own-world-type-31889/ Look it and not more post not tested, sux created scripts baby.
 
Last edited:
it works i use it in my server o.o but i have fixed the system of sync but i don't will post the fix
 
he probably got the msg of the doSendAnimated text or w/e so that he thinks it works lol
 
i just tested it and it doswnt work. this has no information whatsoever to go into database and change anything in there.
 
Back
Top