Mappers Hell
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomePortalLatest imagesSearchRegisterLog in

 

 Verses of hymn.

Go down 
4 posters
AuthorMessage
Demon Eldorath
Moderator
Moderator
Demon Eldorath


Number of posts : 281
Age : 34
Registration date : 2008-05-07

Verses of hymn. Empty
PostSubject: Verses of hymn.   Verses of hymn. Icon_minitimeThu May 08, 2008 4:21 pm

The Four Verses of Hymn.

This is a selfmade script
I'm not a Pro LUA programmer, just that I'm good enough to script my own quests for my mappings.
And if you use my idea and/or the script I'd like to be respected that much for this so you pass some credits for me.
And I'd like to contribute to the forum.

For server type: Low-rate 1-10x experience. - Roleplaying Server.
Could be used for higher rates but then just make it harder than in my explanation.

Here we go!






Information about the quest idea.
When a player is clicking the FIRST verse of hymn it'll allow your character to enter a area from a magictile (somewhat like a invisible teleportal) to the First stage of the quest.

Inside each stage there have to be a new area - one new area for each verse. (four verses=four stages).
If you dies inside the quest you can't redo it. You wasted your chance for an unique item or the regular quest item.

Since after you entered the first stage once it'll add a storage value to the character file which allows you to read the SECOND verse.

and so on... up to the last one.

and you can't skip stages, you have to TRY each stage, which means atleast enter the stage/area where there should be no turning back.


I did it like this for each stage:
I added a boss for each stage which drops one rare unique item, and ONE questbox, so it's hundred percent sure that you'll atleast receive something for succeeding, but it's the Boss drop that matters.

And because you only can make each boss ONCE each character (suggesting this to be a highlevel quest)
This item, if it's not loot able - it'll be RARE as hell. Which will increase some RPG spree.


actions/scripts/Musicsheets.lua

Code:

function onUse(cid, item)
if item.itemid == 6087 then
if getPlayerStorageValue(cid,1800) < 0 then
doPlayerSendTextMessage(cid,22,'Verse one - Horror.')
setPlayerStorageValue(cid,1800,1)
doRemoveItem(item.uid,1)
end
elseif item.itemid == 6088 then
if getPlayerStorageValue(cid,1800) == 2 then
doPlayerSendTextMessage(cid,22,'Verse two - Still hiding.')
setPlayerStorageValue(cid,1800,3)
doRemoveItem(item.uid,1)
end
elseif item.itemid == 6089 then
if getPlayerStorageValue(cid,1800) == 4 then
doPlayerSendTextMessage(cid,22,'Verse three - Endless pain.')
setPlayerStorageValue(cid,1800,5)
doRemoveItem(item.uid,1)
end
elseif item.itemid == 6090 then
if getPlayerStorageValue(cid,1800) == 6 then
doPlayerSendTextMessage(cid,22,'Verse four - Abyssal wargods.')
setPlayerStorageValue(cid,1800,7)
doRemoveItem(item.uid,1)
end
else
doPlayerSendTextMessage(cid,22,'You need to enter the nightmares of your current verse.')
end
return 1
end

and to movements.

movements/scripts/hymns.lua

Code:
newpos1 = {x=1006, y=1028, z=6}
newpos2 = {x=1006, y=1029, z=6}
newpos3 = {x=1006, y=1030, z=6}
newpos4 = {x=1006, y=1031, z=6}
function onStepIn(cid, item, pos)
if item.itemid == 1284 and item.actionid == 1800 then
if getPlayerStorageValue(cid,1800) == 1 then
doTeleportThing(cid,newpos1)
doSendMagicEffect(getPlayerPosition(cid),19)
doPlayerSendTextMessage(cid,22,'First Verse of Hymn.')
setPlayerStorageValue(cid,1800,2)
elseif getPlayerStorageValue(cid,1800) == 3 then
doTeleportThing(cid,newpos2)
doSendMagicEffect(getPlayerPosition(cid),19)
doPlayerSendTextMessage(cid,22,'Second Verse of Hymn.')
setPlayerStorageValue(cid,1800,4)
elseif getPlayerStorageValue(cid,1800) == 5 then
doTeleportThing(cid,newpos3)
doSendMagicEffect(getPlayerPosition(cid),19)
doPlayerSendTextMessage(cid,22,'Third Verse of Hymn.')
setPlayerStorageValue(cid,1800,6)
elseif getPlayerStorageValue(cid,1800) == 7 then
doTeleportThing(cid,newpos4)
doSendMagicEffect(getPlayerPosition(cid),19)
doPlayerSendTextMessage(cid,22,'Fourth and Last Verse of Hymn.')
setPlayerStorageValue(cid,1800,8)
elseif getPlayerStorageValue(cid,1800) == 8 then
doPlayerSendTextMessage(cid,22,'You\'ve already played the Hymn.')
end
else
doPlayerSendTextMessage(cid,22,'You need to learn the verses for this Hymn')
end
return 1
end





My Apologize!
I'm REALLY sorry if I wrote this in a unproper way, but this all got messed up in my head. But read my explanation and read the script and you'll understand alot more. Change the script if needed, to more suitable frases and such.



All you need to do is:

  • Add all four verses in four diffrent monsters, one verse each monster.
  • Add the script to all VERSE ITEM ID which is
    Code:

    <action itemid="6087" script="musicsheets.lua"/>
    <action itemid="6088" script="musicsheets.lua"/>
    <action itemid="6089" script="musicsheets.lua"/>
    <action itemid="6090" script="musicsheets.lua"/>
  • And add action id 1800 to the GROUNDFLOOR which will teleport the player if it's getting the function activated onStepIn.
  • Change the floorid in my script to which floor that suits your quest spot. I'm using 1284, so search it up and change it.
  • And add this to movements.xml
    Code:
    <movevent event="StepIn"  actionid="1800" script="Hymns.lua" />



Thank you. That's all for now. Never been released somewhere else, and it's a UNIQUE idea, and it's probably getting implented to Amoria. Never seen any server with this kind of script, nor seen a post about something even close to this.

I'd be glad if you all post your thoughts and wonderings about this.


Kind Regards, your Demon Eldorath.
Back to top Go down
http://niklas.nilssons.net
Demon Eldorath
Moderator
Moderator
Demon Eldorath


Number of posts : 281
Age : 34
Registration date : 2008-05-07

Verses of hymn. Empty
PostSubject: Re: Verses of hymn.   Verses of hymn. Icon_minitimeThu May 08, 2008 4:39 pm

ToDo:nothing yet.
Known bugs:the cancel message won't appear.
tested with both doPlayerSendTextMessage and doSendCancel
Bug Fixes:none yet.
Back to top Go down
http://niklas.nilssons.net
Bruce
Admin
Admin



Number of posts : 175
Registration date : 2008-04-03

Verses of hymn. Empty
PostSubject: Re: Verses of hymn.   Verses of hymn. Icon_minitimeThu May 08, 2008 6:25 pm

Indeed it looks nice.
Haven't checked on the code yet, but the idea is nice.
One thing that caught my attention: I guess you missed some flaws there.
For example the first one, how will you tell if the player died inside the area? Let's say he reads the first hymn. He enters the first area and dies.
The storage will still be with him, so he can just enter it again. Unless you use the onDie() function... I guess =P

Another thing, dunno if it is a flaw, you said each hymn will be looted by different creatures. If I just go and get all 4 of them and read em right away, I'll have all the storages, meaning I can just sprint to the exit, without killing any monsters, just getting the loot inside the chests. Dunno if I understood that part, so I might be wrong on this part.


I loved the idea, and would really like to see it workout.
I'll help you if you need. I'm not a pro as well, but I always made my own actions for each map.
Back to top Go down
https://mappershell.rpg-board.net
Demon Eldorath
Moderator
Moderator
Demon Eldorath


Number of posts : 281
Age : 34
Registration date : 2008-05-07

Verses of hymn. Empty
PostSubject: Re: Verses of hymn.   Verses of hymn. Icon_minitimeThu May 08, 2008 7:03 pm

Bruce wrote:
Indeed it looks nice.
Haven't checked on the code yet, but the idea is nice.
One thing that caught my attention: I guess you missed some flaws there.
For example the first one, how will you tell if the player died inside the area? Let's say he reads the first hymn. He enters the first area and dies.
The storage will still be with him, so he can just enter it again. Unless you use the onDie() function... I guess =P

Another thing, dunno if it is a flaw, you said each hymn will be looted by different creatures. If I just go and get all 4 of them and read em right away, I'll have all the storages, meaning I can just sprint to the exit, without killing any monsters, just getting the loot inside the chests. Dunno if I understood that part, so I might be wrong on this part.


I loved the idea, and would really like to see it workout.
I'll help you if you need. I'm not a pro as well, but I always made my own actions for each map.


Nah, since you only get ONE chance each verse. Since, if you would've read my code you'll see there's a NEW storagevalue given to the character when used. Which Means he's not able to enter it UNTIL he reads the next verse. and you cant read em all at once, since you need to enter the portals by order. first, second, third and fourth.

And, I didn't forced anyone to use it, just that I wanted to contribute so we aswell got something unique maybe which would drag people. plus most mappers don't know how to script LUA. I just started with LUA, and I've mapped for six years. x] And then you're good enough to understand what I mean when you read the script.

This is ment to be for a HARDCORE QUEST script.

Edit, if you're setting a NEW storage value as the old one but in another part of the value it'll CHANGE not add. So you're wrong. This script contains no bugs by default, and I bet it's quite hard to bug it, since it's just a simple code which contains nothing to bug.
I've tested it on diffrent server distros. Don't worry.
Back to top Go down
http://niklas.nilssons.net
Bruce
Admin
Admin



Number of posts : 175
Registration date : 2008-04-03

Verses of hymn. Empty
PostSubject: Re: Verses of hymn.   Verses of hymn. Icon_minitimeThu May 08, 2008 7:18 pm

I never said you forced anything... indeed I said I liked the idea.
I just posted some things that caught my attention... but as I see, you thought of it all already. That's good =P
Indeed I didn't check the code, but now I saw how you control a player not to use all the hymns at once. Indeed it's another nice idea.
Keep it up!

C YA
Back to top Go down
https://mappershell.rpg-board.net
Demon Eldorath
Moderator
Moderator
Demon Eldorath


Number of posts : 281
Age : 34
Registration date : 2008-05-07

Verses of hymn. Empty
PostSubject: Re: Verses of hymn.   Verses of hymn. Icon_minitimeThu May 08, 2008 7:21 pm

Thanks anyway. This piece of shit took me five hours. Don't ever think I leave trash or unfinished scripts behind, exept my last try to make a living flower system since it doesn't exist on OTservers, lack of NPC lua, so I gave up since I needed a NPC which sells items with action id. x] Basicly gave up.
Back to top Go down
http://niklas.nilssons.net
Demon Eldorath
Moderator
Moderator
Demon Eldorath


Number of posts : 281
Age : 34
Registration date : 2008-05-07

Verses of hymn. Empty
PostSubject: Re: Verses of hymn.   Verses of hymn. Icon_minitimeSun May 18, 2008 6:09 am

Bump, none else like it? ;<
Back to top Go down
http://niklas.nilssons.net
Heer Karel
Advanced User
Advanced User
Heer Karel


Number of posts : 293
Age : 31
Registration date : 2008-04-04

Verses of hymn. Empty
PostSubject: Re: Verses of hymn.   Verses of hymn. Icon_minitimeSun May 18, 2008 6:32 am

I like it, would be a nice quest
Back to top Go down
Demon Eldorath
Moderator
Moderator
Demon Eldorath


Number of posts : 281
Age : 34
Registration date : 2008-05-07

Verses of hymn. Empty
PostSubject: Re: Verses of hymn.   Verses of hymn. Icon_minitimeSun May 18, 2008 6:50 am

Thanks :] The hard thing now is too use my fantasy to merge it into a quest on the map aswell.
Back to top Go down
http://niklas.nilssons.net
Heer Karel
Advanced User
Advanced User
Heer Karel


Number of posts : 293
Age : 31
Registration date : 2008-04-04

Verses of hymn. Empty
PostSubject: Re: Verses of hymn.   Verses of hymn. Icon_minitimeSun May 18, 2008 7:05 am

Demon Eldorath wrote:
Thanks :] The hard thing now is too use my fantasy to merge it into a quest on the map aswell.
you got the same problem as I do, I always got great ideas, but mapping it is soo hard x.x
Back to top Go down
Demon Eldorath
Moderator
Moderator
Demon Eldorath


Number of posts : 281
Age : 34
Registration date : 2008-05-07

Verses of hymn. Empty
PostSubject: Re: Verses of hymn.   Verses of hymn. Icon_minitimeSun May 18, 2008 2:41 pm

Know lua aswell ?
Back to top Go down
http://niklas.nilssons.net
Heer Karel
Advanced User
Advanced User
Heer Karel


Number of posts : 293
Age : 31
Registration date : 2008-04-04

Verses of hymn. Empty
PostSubject: Re: Verses of hymn.   Verses of hymn. Icon_minitimeSun May 18, 2008 3:07 pm

not really, a really small bit
Back to top Go down
Kakan
User
User



Number of posts : 13
Registration date : 2008-05-18

Verses of hymn. Empty
PostSubject: Re: Verses of hymn.   Verses of hymn. Icon_minitimeSun May 18, 2008 4:38 pm

Add this to your ToDo-list;
Tab the script.

It's a pain to read. Razz
Back to top Go down
Demon Eldorath
Moderator
Moderator
Demon Eldorath


Number of posts : 281
Age : 34
Registration date : 2008-05-07

Verses of hymn. Empty
PostSubject: Re: Verses of hymn.   Verses of hymn. Icon_minitimeSun May 18, 2008 5:20 pm

Nah, it's tabbed. just wont showup in these Code windows ;p
Back to top Go down
http://niklas.nilssons.net
Sponsored content





Verses of hymn. Empty
PostSubject: Re: Verses of hymn.   Verses of hymn. Icon_minitime

Back to top Go down
 
Verses of hymn.
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Mappers Hell :: RPG :: Quests-
Jump to: