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

Windows Change world type command (PVP, NO-PVP, PVP-E)

atyll

Member
Joined
Dec 30, 2008
Messages
380
Reaction score
16
Hello

I am using Tibia World RPG Distro 1.1.0 engine for my server (kind of like Avesta) 7.6.
Unfortunately for me, it does not have a command to change to world type (usually /pvp).
I don't have any sources of my server, is there any way I could change the world type in my server without constantly changing it in config.lua and restarting the server?

Thank you for help in advance

- - - Updated - - -

I tried to make Action with the use of switch, but I get error: attempt to call global value 'SetWorldType'

LUA:
function onUse(cid, item, frompos, item2, topos)


if item.uid == 9812 and item.itemid == 1945 then
setWorldType(1)
doBroadcastMessage('Gameworld type set to: Optional PVP.', MESSAGE_EVENT_ADVANCE)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 9812 and item.itemid == 1946 then

doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
return 1
end

Help?

- - - Updated - - -

Bumppppp
 
Back
Top