What's new

talkactions co dopisac aby bylo od profesji

Kebabik

Active User
Joined
Aug 11, 2009
Messages
106
Reaction score
10
Witam.
Posiadam skrypt talkactions, dzia?a on lecz nie wiem co dopisa? aby by? tylko dla jednej profesji :D prosz? o help
 
T

Tairens

Guest
Odp: talkactions co dopisac aby bylo od profesji

Na pocz?tku skryptu
Code:
if(getPlayerVocation(cid) ~= number) then
   return true
end
Gdzie number to profesja kt?ra tylko mo?e u?ywa? skryptu.
 

Kebabik

Active User
Joined
Aug 11, 2009
Messages
106
Reaction score
10
Odp: talkactions co dopisac aby bylo od profesji

Nie dziala mi pisze Event on say not found ... HELP
 

Amino12

Advanced User
Joined
Jun 12, 2008
Messages
292
Reaction score
48
Odp: talkactions co dopisac aby bylo od profesji

To daj ten skrypt to ci powiem gdzie co da?.

Pozdrawiam
 

Kebabik

Active User
Joined
Aug 11, 2009
Messages
106
Reaction score
10
Odp: talkactions co dopisac aby bylo od profesji

function onSay(cid, words, param)
playerpos = getPlayerPosition(cid)
doSendAnimatedText(playerpos, "Rat", 120)
creature = doSummonCreature("rat", playerpos)
doConvinceCreature(cid, creature)
creature1 = doSummonCreature("rat", playerpos)

else
doPlayerSendCancel(cid, "Sorry, You not have enaugh mana.")
doSendMagicEffect(playerpos, 2)
end
return 1
end
skrypt........................
 

Amino12

Advanced User
Joined
Jun 12, 2008
Messages
292
Reaction score
48
Odp: talkactions co dopisac aby bylo od profesji

Code:
function onSay(cid, words, param)
if getPlayerVocation(cid) == numer then
playerpos = getPlayerPosition(cid)
doSendAnimatedText(playerpos, "Rat", 120)
creature = doSummonCreature("rat", playerpos)
doConvinceCreature(cid, creature)
creature1 = doSummonCreature("rat", playerpos)
end
else
doPlayerSendCancel(cid, "Sorry, You not have enaugh mana.") 
doSendMagicEffect(playerpos, 2)
end
return 1
end

Rozumiem ?e to nie ca?y skrypt. Zmieniasz numer na numer profesji kt?ra powinna m?c u?ywa? tego.

Pozdrawiam
 
Top