Jump to content

Question

Posted

Hello everyone!
I'm requesting for a npc script which getitem to the guild leader as soon as the WOE is over.
The npc must only check for the active castle and then it must getitem.
ex: prtg_cas01 is the only castle activated for WOE so the npc must check who owns that castle and then it much getitem to the respective guild leader when the WOE ends.

 

~Thanks.

5 answers to this question

Recommended Posts

Posted (edited)

@Zikoziz, Si.

 

@Stolao, thanks for the reply.
I wanted to use euphys woe controller is it so cool but when ever i @reloadscript in game, all the saved data in the npc will be resetted and that's a bummer.
Do you know how to keep the settings of 
euphys woe controller(Active castle & timings etc..) even when i @reloadscript?


Got it.
Thanks to @KirieZ.

 

- script WoePrize -1,{
 
OnAgitEnd:
OnAgit2End:
//.@castleMap$ = "prtg_cas01";
set .@castleMap$, "prtg_cas01";
 
set .@guildId, getcastledata(.@castleMap$, 1);
set .@guildMasterId, getguildmasterid(.@guildId);
 
query_sql("SELECT `account_id` FROM `char` WHERE `char_id` = " + .@guildMasterId, .@guildMasterAccId);
 
getitem 512, 1, .@guildMasterAccId;
end;
}
Edited by vijay30393
Posted (edited) · Hidden by Emistry, August 3, 2015 - non-english
Hidden by Emistry, August 3, 2015 - non-english

necesitas entregar premios?


Edited by Zikoziz
Posted

@emistry

Error:

[Error]:
script error on npc/guild/agit_controller.txt line 104
    parse_line: expect command, missing function name or calling undeclared func
tion
    99 :                }
   100 :        if (!agitcheck() && !agitcheck2()) sleep 4000;
   101 :        set .Init,1;
   102 :
   103 : OnMinute00:
*  104 :        'f'reeloop(1);
   105 :        if (agitcheck() || agitcheck2()) {
   106 :                for(set .@i,0; .@i<.Size; set .@i,.@i+4)
   107 :                        if (gettime(4) == $WOE_CONTROL[.@i] && gettime(3
) == $WOE_CONTROL[.@i+2]) {
   108 :                        OnWOEEnd:
   109 :                                announce "The War Of Emperium is over!",
bc_all|bc_woe;

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...