Jump to content
  • 0

Woe Rewarder?


D3ath

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   3
  • Joined:  03/07/12
  • Last Seen:  

it is possible that when 1 guild win the woe and it ends, they will automatic warp into @warp quiz_02 and all of members of it will be given a rewards?

they will warp on quiz_02 and auto use @itemmap quiz_02 607 1 like that and doommap. even gm's are not online.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


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

actually there are alot WOE Rewarder that work better than this way...just search the forum..

anyway...assume that you have @itemmap command... and you want it to work like what you have described...

try this..

http://pastebin.com/raw.php?i=rGgJyH6j

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  99
  • Reputation:   4
  • Joined:  10/25/12
  • Last Seen:  

actually there are alot WOE Rewarder that work better than this way...just search the forum..

anyway...assume that you have @itemmap command... and you want it to work like what you have described...

try this..

http://pastebin.com/raw.php?i=rGgJyH6j

I like this script. actually they cannot be recall/warp if they in castle map. How can i add countdown to recall maybe?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

warpguild doesn't work

            case 3: // m,x,y
               if (!map[pl_sd->bl.m].flag.noreturn && !map[pl_sd->bl.m].flag.nowarp)
                   pc_setpos(pl_sd,mapindex_name2id(str),x,y,CLR_TELEPORT);
               break;

in a map that is noreturn or nowarp mapflag, warpguild script command doesn't work

and castle maps has noreturn mapflags

also your getcastledata script command missing an argument

getcastledata("<map name>",<type of data>)


like this

-    script    asdasdas    -1,{
OnAgitEnd:
//    setcastledata "prtg_cas01", 1 , 1; // for testing purpose

   .@nb = query_sql( "select char_id from `char` where guild_id = "+ getcastledata( "prtg_cas01", 1 ) +" and online = 1", .@cid );
   for ( .@i = 0; .@i < .@nb; .@i++ )
       warpchar "quiz_02", 0,0, .@cid[.@i];

   sleep 3000;

   query_sql "select account_id from `char` where online = 1", .@aid; // randomly find someone to attach
   attachrid .@aid;

   atcommand "@itemmap quiz_02 607 1";

   mapwarp "quiz_02","prontera",155,181;
   end;
}

but seriously ... just like this will do

-    script    asdasdas    -1,{
OnAgitEnd:
   .@nb = query_sql( "select account_id from `char` where guild_id = "+ getcastledata( "prtg_cas01", 1 ) +" and online = 1", .@aid );
   for ( .@i = 0; .@i < .@nb; .@i++ )
       getitem 607, 1, .@aid[.@i];
   end;
}

dunno why you want to complicated it so much

Edited by AnnieRuru
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...