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

[Request] Npc Account Creator

ryan868

New Member
Joined
Dec 29, 2008
Messages
73
Reaction score
1
Hello I need an NPC Account Creator that creates an account after its complete you get kicked to stop people from making multiple accounts at once :p

Also when on private Account and get enough frags to go in again, you can 'add' a character to your account, then get kicked to prevent making more than 1 character at a time :p

(its for pvpe server)
 
Last edited:
Door:

PHP:
local fragsRequired = 10
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerFrags(cid) >= fragsRequired then
		if item.actionid == 1219 then
			doTransformItem(item.uid, item.itemid + 1)
			doTeleportThing(cid, toPosition, TRUE)
		end	
	else
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need "..fragsRequired.." or more to pass this door!")
	end
return TRUE
end
 
Ok then try this door:

PHP:
local fragsRequired = 10
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local charPos = getCreaturePosition(cid)
    local doorPos = getThingPos(item.uid)
	if item.actionid == 1219 then
   if getPlayerFrags(cid) >= fragsRequired then
        if isInArray(verticalOpenDoors, item.itemid + 1) == TRUE then
            if ( charPos.x == doorPos.x - 1 and charPos.z == doorPos.z ) then
                doTeleportThing(cid, doorPos)
                doMoveCreature(cid, 1)
                doSendMagicEffect({x = doorPos.x + 1, y = doorPos.y, z = doorPos.z}, 12)
            elseif ( charPos.x == doorPos.x + 1 and charPos.z == doorPos.z ) then
                doTeleportThing(cid, doorPos)
                doMoveCreature(cid, 3)
                doSendMagicEffect({x = doorPos.x - 1, y = doorPos.y, z = doorPos.z}, 12)
            end
        elseif isInArray(horizontalOpenDoors, item.itemid + 1) == TRUE then
            if ( charPos.y == doorPos.y - 1 and charPos.z == doorPos.z ) then
                doTeleportThing(cid, doorPos)
                doMoveCreature(cid, 2)
                doSendMagicEffect({x = doorPos.x, y = doorPos.y + 1, z = doorPos.z}, 12)
            elseif ( charPos.y == doorPos.y + 1 and charPos.z == doorPos.z ) then
                doTeleportThing(cid, doorPos)
                doMoveCreature(cid, 0)
                doSendMagicEffect({x = doorPos.x, y = doorPos.y - 1, z = doorPos.z}, 12)
            end       
        end   
    else
		 doPlayerSendTextMessage(cid, 24, "You need "..fragsRequired.." to pass! [Frags remaining: "..-(getPlayerFrags(cid)-fragsRequired).."]")
        doSendMagicEffect(getCreaturePos(cid), 2) 
    end
	else
	 doPlayerSendTextMessage(cid, 24, "Sorry, not possible.")
        doSendMagicEffect(getCreaturePos(cid), 2)
	end
    return TRUE

end

Rep baby!
 
Pitufo stop being so good at scripting :( I'm getting all jealous and shit. I wanna learn to, but it's to much information for me xD my brain blows up.
And still, i'm not able to script my own script cuz i dont know where to put what, and what code line to put.


edit: example = elseif isInArray(horizontalOpenDoors, item.itemid + 1) == TRUE then
I mean, what the heck is that? I would never know that you should be putting that codeline there xD
 
Back
Top