Jump to content
  • 0

Ygg box restriction


Question

Posted

Hi! I was planning to put a restriction on Ygg box (item id 14232) on some specific maps.

I attempted to do it myself but I can't seem to make it work

 

Here is what I did:

 

14232,Yggdrasilberry_Box_,Yggdrasil Berry 10 Box,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ if( strcharinfo(3) == prontera ) { message Access Denied!; } else { getitem 607,10; } },{},{}

 

Can somebody please tell me what's wrong with this? And how do I fix it? TIA! :D

6 answers to this question

Recommended Posts

Posted

Try this, this script will warp you on prontera 150 150 when you bring an item id 14232 on map prontera : 

 

-    script    Checker    -1,{
OnPCLoadMapEvent:
    if ( strcharinfo(3) == "prontera" && countitem(14232) ) {
        warp "prontera",150,150;
    }
    end;
}
prontera    mapflag    loadevent
Posted

^Thank you so much! That is what I exactly needed! :D



Another question, I was planning to do more than one map. But once I put too much map it tends to mess up, rendering the item useless haha. Help again please? :D

 

I did this:

 

 if( strcharinfo(3) == "prtg_cas01" || strcharinfo(3) == "prtg_cas02" || strcharinfo(3) == "prtg_cas03" || strcharinfo(3) == "prtg_cas04" || strcharinfo(3) == "prtg_cas05" || strcharinfo(3) == "gefg_cas01" || strcharinfo(3) == "gefg_cas02" || strcharinfo(3) == "gefg_cas03" || strcharinfo(3) == "gefg_cas04" || strcharinfo(3) == "gefg_cas05" || strcharinfo(3) == "aldeg_cas01" || strcharinfo(3) == "aldeg_cas02" || strcharinfo(3) == "aldeg_cas03" || strcharinfo(3) == "aldeg_cas04" || strcharinfo(3) == "aldeg_cas05" || strcharinfo(3) == "arug_cas01" || strcharinfo(3) == "arug_cas02" || strcharinfo(3) == "arug_cas03" || strcharinfo(3) == "arug_cas04" || strcharinfo(3) == "arug_cas05" || strcharinfo(3) == "schg_cas01" || strcharinfo(3) == "schg_cas02" || strcharinfo(3) == "schg_cas03" || strcharinfo(3) == "schg_cas04" || strcharinfo(3) == "schg_cas05" ) {
 message strcharinfo(0),"Access Denied!";
 getitem 14232,1;
 } else {
 getitem 607,10;
 } 

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