I think a bit more information on the area, or script, needs to be added.
While I could guess at what you want.. There is two very different paths this script could go, and I don't want to script both of them.
Can you explain exactly how you think the script should work? If required add some pictures to help your explanations.
Thanks!
Castle War 1.0.
Running all days of the week !!!
At first , I would like that this script is not passed on to anyone, because I wanted to test it first of all , do you accept?
The Castle War happens every day of the week , is only an hour long , it is intended for guilds .
part 1: time tile or tile for time (I'm not sure I'm the best person to answer that
ok ok let's go there --->
has a right time to begin each day, for example: at 01:00 hr begins and ends at 02:00 p.m.
Example:
00:55 sending a message to multiple players (broadcast) mmm almost all of them, actually..
01:00 - Now all players with guild may enter, and fight until 02:00p.m
01:15 - sent a broadcast message
The castle war is going on, call your guild and will kill your enemies and stay in the castle ownership with unique monsters. Only example.
01:30 - sent a broadcast message
// // // ...
01:45 - sent a broadcast message
// // // ...
01:58 - the last message: Warning that there's only two minutes to the end of the castle war .
02:00 - You can no longer pass through the special tile , now all that is within it will be sent to the temple and the last guild that used the lever is in possession of the castle.
02:01, 02:02, ..03:00, 04:00 ,05:00.. 11:00.. 15:00.. 20:00.. 00:59 --> doPlayerSendTextMessage(cid, 22, "There are no wars for the castle going on right now")
[/IMG]
[/IMG]
the guild that had the best strategy , which killed all the enemies and used the lever finally, will be able to enter the castle
if posible, sent that message: example:
if possible , if not , fine. creature
if getPlayerGuildRank(cid) == 'Leader' then
doPlayerAddItem(cid, 2160, 10)
doPlayerAddPremiumDays(cid, 2)
setPlayerStorageValue(cid, 10001, 1)
doPlayerSendTextMessage(cid, 22, "Congratulations! Your guild was winning the castle war for the castle! You are the Leader, so won 2 vip days and 10 crystal coins!")
and :
else
doPlayerAddItem(cid, 2160, 20)
setPlayerStorageValue(cid, 10001, 1)
doPlayerSendTextMessage(cid, 22, "Congratulations! Your guild was winning the castle war for the castle! You won 20 Crystal Coins!")
Only guild winning the castle war can enter, if not -- looping forever, not enter.
case 1: Congratulations! Welcome to the ̶j̶u̶n̶g̶l̶e̶ to your castle
case 2: Sorry, you were weak and lost the battle , wait until the next battle !! Check the book, right ?
book information of the castle war.
The last guild that is dominating the castle , that is, who pulled the lever for the last time.
The next battle: today or tomorrow, depends on the time of day.
00:55 - today. example: Aug 14, 2016,
02:01 - only tomorrow, right ?? Aug 15, 2016,
the time: 01:00 am ever.
The last alliance can use the lever, before the castle closes, will own the castle. After he close, can no longer move it, all go to the temple.
At first , I would like that this script is not passed on to anyone, because I wanted to test it first of all , do you accept?
Thank you man !!! Keep it up