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

ACC PHP Bug, please help

troxet

New Member
Joined
Oct 7, 2010
Messages
158
Reaction score
3
Location
United kingdom
Hello I have got quite difficult problem with my acc maker. So My Acc admin panel worked untill I managed to make shop admin work. I dont know how to solve that problem, maybe cause im not good at php.

What im getting? It is Invalid subtopic. Can't load page. In admin panel.

There is my admin panel:

View Code Snippet � Code Viewer - Source Code Upload/Viewer

Shop admin:

View Code Snippet � Code Viewer - Source Code Upload/Viewer

However i got second problem where players spawns in different city and i dont know how to fix that. I have tried in database but it dont work.
 
Last edited:
Code:
if getPlayerVipDays(cid) < 30 then
	    doPlayerSetTown(cid,5)
            doTeleportThing(cid,newtemple)
	doPlayerSendTextMessage(cid,MESSAGE_FIRST,'You are now in donators area.')
	doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT)
end

Add it to creaturescripts/login.lua

Try that, if not, post ur vip system so i can help you.
Only configure the vip days, and the town, id
 
Code:
if getPlayerVipDays(cid) < 30 then
	    doPlayerSetTown(cid,5)
            doTeleportThing(cid,newtemple)
	doPlayerSendTextMessage(cid,MESSAGE_FIRST,'You are now in donators area.')
	doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT)
end

Add it to creaturescripts/login.lua

Try that, if not, post ur vip system so i can help you.
Only configure the vip days, and the town, id

But vip system was configured to super vip :/ not normal vip
 
-- Super Vip Access by raphy246 --
function onUse(cid, item, frompos, item2, topos)
local config = {
item = 10138,
tekst = "Congratulations! You now have a Super VIP Access!"
}
if item.itemid == config.item then
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid,1)
setPlayerStorageValue(cid,21556,1)
doSendMagicEffect(playerpos, 12)
doCreatureSay(cid, config.tekst, TALKTYPE_ORANGE_1)
end
end
 
Code:
function onUse(cid, item, frompos, item2, topos) 
local config = { 
item = 10138, 
tekst = "Congratulations! You now have a Super VIP Access!" 
} 
if item.itemid == config.item then 
local playerpos = getCreaturePosition(cid) 
doRemoveItem(item.uid,1) 
setPlayerStorageValue(cid,21556,1) 
doSendMagicEffect(playerpos, 12) 
doPlayerSetTown(cid,5)
doTeleportThing(cid,newtemple)
doCreatureSay(cid, config.tekst, TALKTYPE_ORANGE_1) 
end 
end

EDIT: i think that I missunderstood, take a look at login.lua, and look if there's any function.
 
for changed in all Temple you need go to
your folder config in website open config.php and search
Code:
// sample, if all players should spawn in one city (city with ID 4):          
$config['site']['newchar_towns'] = array(5);

and changed 5 for town_id where are Super VIP Temple.. for See your Town_id need open
Remeres Map editor open edit/towns and search what number is super temple and changed for 5 to number use super vip temple.
 
Open remere's map editor and only set the position of town id 2 as the town id 1 and create a new town that's thet donator, example 3.
 
Back
Top