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'
Help?
- - - Updated - - -
Bumppppp
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