Jump to content
  • 0

About getitem


vijay30393

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   0
  • Joined:  05/10/12
  • Last Seen:  

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.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   0
  • Joined:  05/10/12
  • Last Seen:  

@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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   16
  • Joined:  12/19/13
  • Last Seen:  

Posted (edited) · Hidden by Emistry, August 3, 2015 - non-english
Hidden by Emistry, August 3, 2015 - non-english

necesitas entregar premios?


Edited by Zikoziz
Link to comment

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

I think euphys woe controller has this built in

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

npc/custom/woe_controller.txt

euphy woe controller doesnt reset the settings.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   0
  • Joined:  05/10/12
  • Last Seen:  

@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;
Link to comment
Share on other sites

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.

×
×
  • Create New...