Jump to content
  • 0

Checks Item onLogin and MapLoad


pandaplaygames

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  113
  • Reputation:   2
  • Joined:  10/29/12
  • Last Seen:  

So What am I doing wrong?



//Checks if character is in GUILD DUNGEON without a guild pass
//gld_dun01","gld_dun02","gld_dun03","gld_dun04","arug_dun01","schg_dun01");
- script guildmapchecker -1,{

OnPCLoginEvent:
OnPCLoadMapEvent:
getmapxy(@map$,@mapx,@mapy,0);
if(@map$ == "gld_dun01" || @map$ == "gld_dun02" || @map$ == "gld_dun03" || @map$ == "gld_dun04" || @map$ == "arug_dun01" || @map$ == "schg_dun01"){
if(countitem(32001) < 1) { 
dispbottom "You do not have a guild dungeon pass on you. You need at least 1";
warp "SavePoint", 0, 0;
}
}
end;
}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


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

gld_dun01     mapflag     loadevent
// other maps too..

OnPCLoadMapEvent required the map to have loadevent to able triggered.

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