Jump to content
  • 0

Automatic price giver~


Turtle

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  1
  • Reputation:   0
  • Joined:  12/28/12
  • Last Seen:  

Anyone that can make script . . if the monster is dead in arena . automatic the party will get 1 tcg and warp into maintown.. Its like a Devil Square Event . . .or Monster Hunt Event. help me please..thx

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


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

Summon the monster with an event label (ex. OnMyMobDead), then:

OnMyMobDead:
   if (mobcount("map_name",strnpcinfo(0)+"::OnMyMobDead") == 0) {
       set .@item, 7227;
       if (!getcharid(1)) {
           getitem .@item,1;
           warp "SavePoint",0,0;
       } else {
           getpartymember getcharid(1),1;
           getpartymember getcharid(1),2;
           for(set .@i,0; .@i<$@partymembercount; set .@i,.@i+1)
               if (isloggedin($@partymemberaid[.@i],$@partymembercid[.@i]))
                   getitem .@item,1,$@partymemberaid[.@i];
           warpparty "SavePoint",0,0,getcharid(1);
       }
   }
   end;

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