Jump to content
  • 0

How do you do this? /sob


mleo1

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  123
  • Reputation:   4
  • Joined:  11/21/11
  • Last Seen:  

sample xD

30005,GM_Knife,GM Knife,4,20,,1000,170,,1,0,0xFFFFFFFF,7,2,2,4,48,1,8,{if (StrCharInfo(3) == "quiz_02") bonus bBaseAtk,20000; bonus bHit,5000; },{},{}

Since I want GMs to have imba stats when just holding events, I want an item to change effects when changing maps even when your using/holding it. the item script above just checks if your in the map. I want an item to check per minute or per changemap. how do you do that? teach me :P.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

Have your item use "callfunc" and in a new script place the call func of the checking map system.

This is for per changing maps.

Note: This hasn't been tested

Item Database

30005,GM_Knife,GM Knife,4,20,,1000,170,,1,0,0xFFFFFFFF,7,2,2,4,48,1,8,{bonus bBaseAtk,20000; bonus bHit,5000; callfunc "GM_Changemap"; end;},{},{}

Separate Script

function%tab%script%tab%GM_Changemap%tab%{

OnPCLoadMapEvent:
getmapxy .@map$,.@x,.@y,0;
if( .@map$ == "yourspecialmap"){
  - special bonus effect here -
  }
end;

}

yourspecialmap		mapflag loadevent

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  123
  • Reputation:   4
  • Joined:  11/21/11
  • Last Seen:  

the effects are gone if you change maps (recon), and the effects adds up when you are in the specific map xD.

but what happens now is you need to *still* reequip the item when youre in that specified map. ill try to find a way xD, im am still reading scripts and learning.

thanks syouji

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