Jump to content
  • 0

doubt awards for clan of the Castle.


Question

Posted (edited)

Hello guys, I would like to know how can I do so that this npc clan members can withdraw up to kriemhild items 3 in 12:0 am 12:0 am.

prontera,150,150,4 script Woe Premium 48,{
set .@nomewoe$, "^009ACD[ Woe premium ]^000000";
set .@GID, GetCastleData("prtg_cas01",1);
setarray .ids, 607,607,607;
if (japegou == 1) {
mes "You've picked up the item today!";
close;
}
mes .@nomewoe$;
mes "Hello" + StrCharInfo (0) + "!";
mes "do you want to withdraw your prize?";
next;
if (select ("yes!: maybe later ...") == 2)
{
 mes .@nomewoe$;
mes "come back when you want";
mes "Okay, I'll be here if you change your mind."
 close;
}
if (!getcharid(2)) {
if (getcastledata("prtg_cas01",1)) {
mes .@nomewoe$;
mes "here is your prize.";
getitem rand(607,607,607),1;
close;
set japegou, 1;
  }
}
mes .@nomewoe$;
mes "only members with clan can inhabit this site!";
close;
OnHour00:
set japegou, 0;
end;
}

Edited by Beret

6 answers to this question

Recommended Posts

Posted
OnHour00:
set japegou, 0;

This is a character variable. You can't set it without having a player attached. I'd recommend setting a global variable based on gettimetick or gettimestr, then checking/setting the character variable accordingly.

Posted

Thanks for replying Euphy am not very good at script, could you tell me how do I fix.

- Is Not even I having the clan in possession is not picking up item

- Error in getitem rand (.607 607.607) .1;

- And how can I put in order to catch up to 3 items from 12:0 am in 12:0 am

Posted

inside you rand() can only have 2 paramater maximum..not more than that...

for giving item randomly it would be like this

getitem .ids[rand(getarraysize(ids)];

for daily item reward...you can set a variable through gettime()

set japegou,gettime(5);

to check the condition .... add in like this...

if( gettime(5) == japegou ){
    mes "You already pick the reward today.";
    close;
}

Posted (edited)

Sorry about the delay but all Euphy did Exchange are picking up items not even being in a clan.

- How do I get just who is the clan of kriemhild to pick up items at npc.

- And also how can I do that can give up to 3 items with ids 25620.

Edited by Beret

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...