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

Vocation

dragonballfb

New Member
Joined
Mar 31, 2012
Messages
15
Reaction score
2
PHP:
	 	if(text == "crystal coins")
    {
    internalPlayerAddItem(NULL, player, Item::CreateItem(2160, 100), true); 
    }

Witam, pisze w sprawie dodania do kodu warunku dotyczącego vocation, ktory ma wygladac tak ze jezeli powiesz "crystal coins" i masz voaction 3 dostajesz 100cc.
Z gory dzieki ;)
 
PHP:
if(text == "crystal coins" && player->getVocationId() == 3) 
{ 
	internalPlayerAddItem(NULL, player, Item::CreateItem(2160, 100), true);  
}
 
Jeśli dobrze zrozumiałem to mogłeś zrobić też tak
Lua:
function onSay(cid, words, param, channel)
if getPlayerVocation(cid) == 3 then
	doPlayerAddItem(cid, 2160, 100)
		end
	return true
end
 
Jeśli dobrze zrozumiałem to mogłeś zrobić też tak
Lua:
function onSay(cid, words, param, channel)
if getPlayerVocation(cid) == 3 then
	doPlayerAddItem(cid, 2160, 100)
		end
	return true
end
ale mu chodzi o to, żeby komuś na nieświadomce wkompilować; <
 
Back
Top