Jump to content
  • 0

edit bindatcmd


ajaytrix

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  03/29/12
  • Last Seen:  

-	script	storageohyeah	-1,{
OnInit:
bindatcmd "storage",strnpcinfo(3)+"::OnAtcommand";
end;
 
OnAtcommand:
setarray .Map$[0],"cell_game","aldeg_cas02","sec_pri","prtg_cast01";
if(strcharinfo(3) == .Map$[0] || strcharinfo(3) == .Map$[1]){
  message strcharinfo(0),"You can't open your storage here!";
end;
}
openstorage;
end;
 
}

Someone please help me to add multiple maps? Seems like I can only add two restricted @storage.

What will I edit so I can restrict using @storage on those 4 or more maps. Thank you.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Try :

-    script    storageohyeah    -1,{
OnInit:
    bindatcmd "storage",strnpcinfo(3)+"::OnAtcommand";
    setarray .Map$[0],"cell_game","aldeg_cas02","sec_pri","prtg_cast01";
    end;

OnAtcommand:
    for ( set .@i, 0; .@i < getarraysize(.Map$); set .@i, .@i + 1 ) {
        if( strcharinfo(3) == .Map$[.@i] ) {
            message strcharinfo(0),"You can't open your storage here!";
            end;
        }
    }
    openstorage;
    end;
}
Edited by Patskie
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  03/29/12
  • Last Seen:  

Tried it. Hmm. When I use @storage, message pop ups and still can use @storage inside that restricted map.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Tried it. Hmm. When I use @storage, message pop ups and still can use @storage inside that restricted map.

Edited my last post.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  03/29/12
  • Last Seen:  

Tried it. Hmm. When I use @storage, message pop ups and still can use @storage inside that restricted map.

Edited my last post.

hmm.. i can't warp sir. 

 

m92al0.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Warp? @_@ is my script will make you warp? Not it isn't, It only modifies a command. That is a different story

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  03/29/12
  • Last Seen:  

Uhmm. Oh yeah, my fault sir Patskie.

 

Your script is working fine. Sorry ^_^ 

I restarted my server. XD works fine. 

Thank you again, and sorry!

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