Jump to content
  • 0

How do you do this? /sob


Question

Posted

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.

2 answers to this question

Recommended Posts

Posted

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

Posted

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

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