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

Remove Outfit Addons

DX~

New Member
Joined
Mar 29, 2008
Messages
148
Reaction score
0
Hello all

That is my question:

Where can I remove the addons of a player? (from DB)
Or what I need to do to remove addons?

EDIT: Im using The Forgotten Server v0.2 (Mystic Spirit) v8.22

Thanks in advance
DX~
 
Last edited:
You need remove some lines in players_sotrage table in your database.
I've done it but some players was able to done some quests again (it show I've deleted more than necessary...because of that I'll not talk you the lines I've removed...xP

but you can creat a new character, see what lines he have in table Players_sotarage and buy the addons. after you can delete the new lines...

I think is that...

bye
 
I needed help with this to a while ago, Macroman helped me.

DELETE FROM `player_storage` WHERE `player_id` = '100'

Open the 'SQL' window in phpmyadmin and execute this.

Change the `player_id` = '100' to the id you the player you want to delete the addons from
 
@Flyde

I think it will remove all lines of player id 100 right?
so if somebody do it the player id 100 will be able to do some quests again right?

Cya//
 
^^

you can use this
create a TP with actionid 8000

movements.xml
Code:
<movevent event="StepIn" itemid="5023" script="removeaddons.lua"/>

script
Code:
local maleOutfits   = {
                      128, 129, 130, 131, 132, 133, 134, 143, 144, 
                      145, 146, 151, 152, 153, 154, 251, 268, 273,
                      278, 289, 325
                      }
local femaleOutfits = {
                      136, 137, 138, 139, 140, 141, 142, 147, 148,
                      149, 150, 155, 156, 157, 158, 252, 269, 270,
                      279, 288, 324
                      }

function onStepIn(cid, item, frompos, item2, topos)

local cfg = {
            message = "Addon Removed.",
            pos = getCreaturePosition(cid)
            } 

	if item.actionid == 8000 and (getPlayerSex(cid) == 0) then
		for i = 1, #femaleOutfits do
			doPlayerRemOutfit(cid, femaleOutfits[i], 3)
			doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,cfg.message )
			doSendMagicEffect(cfg.pos, CONST_ME_POFF)
		end
	elseif item.actionid == 8000 and (getPlayerSex(cid) == 1) then
		for i = 1, #maleOutfits do
			doPlayerRemOutfit(cid, maleOutfits[i], 3)
			doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,cfg.message )
			doSendMagicEffect(cfg.pos, CONST_ME_POFF)
		end
	end
	return true
end
 
Back
Top