Check how is aol scriptedIn some servers, !bless gives you all blessings, but when you say !megabless, it gives you a Megablessfalcon, (Golden Falcon, item id 8976),it takes money from you , and when you use it, it gives you a super/megabless, and you lose no skills, and 80% less exp when you die, and of course no itemloss. I dont know how to script the megabless falcon, so could someone help me? I would be really thankful!
but aol isn't an item which i will use and it disappers !!Check how is aol scripted
golden falcon item
function onUse
setStorage..
function onPrepareDeath
if getstorage then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 20)
doPlayerSetLossPercent(cid, PLAYERLOSS_SKILLS, 0)
removeStorage
if all will do what u do so give me a topic that teach me how to make scripts !!Some hints...
Code:golden falcon item function onUse setStorage..
Code:function onPrepareDeath if getstorage then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 20) doPlayerSetLossPercent(cid, PLAYERLOSS_SKILLS, 0) removeStorage
tfs 0.3.6setlosspercent doesnt exist in 1.x though, not sure which version hes using
MashyLets start with action script ( golden falcon)
add fcunction onuse
Then use setplayersetsgorage(cid, number, value)
Then doCreatureSay(cid, balablabla, TALKTYPE_ORANGE_1)
ruturn true
End
Creatureacript
Add function onPrepareDeath ( el function dy m3naha lama elplayer yagy ymoot tab hn3mel eih lama yagy ymoot hnshoof... sorry guys for arabic )
Lets check if player have storage or no
If getplayerstorage(cid, number, value) then
Start add all do u want
doPlayerSetLossPercent and and
When u finish from do player close function by
End ruturn true end
And add creaturescript.xml and regrist in login
Sorry in arabic guys
ركز فى الكلام دة وان شاء الله هتعرف تعمل كل حاجة صح لكا ارجع البيت هكون على اتصال بيك ان شاء الله انا بكلمك من الموبيل