What's new

Actions Super Promocja - Item

DenZ

Zasłużony
Joined
Feb 23, 2011
Messages
868
Reaction score
30
Age
28
Oddaje w wasze r?czki do?? prosty skrypt na super promocje.

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
   if getPlayerPromotionLevel(cid) == 1 then
       doPlayerSetPromotionLevel(cid, 2)
       doSendMagicEffect(toPosition, CONST_ME_MAGIC_RED)
       doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Now you are Super"..getPlayerVocationName(cid)..".");
       doRemoveItem(item.uid, 1)
   else
       doPlayerSendCancel(cid,"You need to be promoted in order to use this item.")
   end
end
 

Mr Fruit

User
Joined
Feb 15, 2011
Messages
26
Reaction score
1
Odp: Super Promocja - Item

Na pewno mi si? kiedy? przyda jak zn?w si? zaczn? bawi? w Otsy ^^
 

R A H

Senior User
Joined
May 24, 2014
Messages
1,342
Reaction score
47
Odp: Super Promocja - Item

Klimaty Rox?w :x
 
Top