• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Second Promotion Npc

exique

Natala-ot.com
Joined
Sep 28, 2008
Messages
1,673
Reaction score
25
Location
Sweden
Hello!
I need a second promotion npc which does this:

Gives the player a second promotion for 1000cc ( 10 000 000 gold)
And the player needs to be vip (storage is: 1337)

Possible? :D

Reputation! :thumbup:
 
GRRRRRR! I tried.. I got a error (very very ridiculous one) so I decided to post and see..
 
Shut the fuck up.
He's requesting the NPC, not vocation entries ;)
 
Take this piece of code:
Code:
if (msg == "promotion") then
	if (getPlayerStorageValue(cid, 1337) > 0) then
		if (doPlayerRemoveMoney(cid, 10000000) == TRUE) then
			doPlayerSetPromotionLevel(cid, promotion level of new voc)
			doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_GREEN)
			npcHandler:selfSay("You are now promoted to promotion level 2!", cid)
		else
			npcHandler:selfSay("You haven't enough gold!", cid)
		end
	else
		npcHandler:selfSay("Sorry, but you aren't vip!", cid)
	end
end
 
Thank! YOU! And the other guy can go to hell. I'm better then you anyways..

Respect to Sality! ANd rep!
 
Take this piece of code:
Code:
if (msg == "promotion") then
	if (getPlayerStorageValue(cid, 1337) > 0) then
		if (doPlayerRemoveMoney(cid, 10000000) == TRUE) then
			doPlayerSetPromotionLevel(cid, promotion level of new voc)
			doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_GREEN)
			npcHandler:selfSay("You are now promoted to promotion level 2!", cid)
		else
			npcHandler:selfSay("You haven't enough gold!", cid)
		end
	else
		npcHandler:selfSay("Sorry, but you aren't vip!", cid)
	end
end

Won't this mess up?
It doesn't recognize the players current voc...

So he will be able to get promotion as much as he wants? :o
 
Who cares? He will always receive promotion level 2, so hmm for example he can degrade his vocation D:

And by the way: It's not realease, just quick reply.
 
Back
Top