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

SOLVED

In 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!
Check how is aol scripted :)
 
U havd alot idea u can make golden falcon give you storage and then use ondeath script
if player have storage xxxx set loss exp x and add all u want and than set storage 0
 
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
 
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
if all will do what u do so give me a topic that teach me how to make scripts !!
i can't make script although u gave me all requirements
 
I would do it but i can't right now, howerver with those hints someone else will make it easily so be patient :p @heba i guess
 
Lets 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
ركز فى الكلام دة وان شاء الله هتعرف تعمل كل حاجة صح لكا ارجع البيت هكون على اتصال بيك ان شاء الله انا بكلمك من الموبيل
 
Lets 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
ركز فى الكلام دة وان شاء الله هتعرف تعمل كل حاجة صح لكا ارجع البيت هكون على اتصال بيك ان شاء الله انا بكلمك من الموبيل
Mashy :)
 
Back
Top