Jump to content
  • 0

doubt awards for clan of the Castle.


Beret

Question


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

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

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

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

Link to comment
Share on other sites


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

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;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

And how do just that for the clan of kriemhild can pick up because all are able to pick up.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Delete:

if (!getcharid(2)) {
if (getcastledata("prtg_cas01",1)) {
// script
  }
}

Add:

if (getcharid(2) == .@GID) {
// script
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

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