Jump to content
  • 0

H0w to make GM weapon only for GM?


Question

Posted

Hi, 
how do i make Angra Manyu, and Ahura Mazda only GM can use....?
i mean these GM weapon and shield..normal players also can use..
what do i change here to make only gm can use...

and i also want to make this GM weapon not tradable and not dropable...
thanks in advance

2199 1599

 

1599,Angra_Manyu,Angra Manyu,4,1,,10,10000:10000,,2,0,0xFFFFFFFF,7,2,2,1,1,1,8,{ bonus bAllStats,50; bonus bBaseAtk,3300; bonus bMatkRate,200; bonus2 bHPDrainRate,1000,100; bonus2 bSPDrainRate,1000,20; bonus bHealPower,200; bonus2 bAddRace,RC_NonBoss,100; bonus2 bAddRace,RC_Boss,100; skill "WZ_STORMGUST",10; Skill "WZ_METEOR",10; Skill "WZ_VERMILION",10; skill "GM_SANDMAN",1; bonus bVariableCastrate,-100; bonus bFixedCastrate,-100; },{},{}


2199,Ahura_Mazda,Ahura Mazdah,5,1,,10,,10000,,0,0xFFFFFFFF,7,2,32,,1,1,0,{ bonus bAllStats,50; bonus bMdef,99; bonus bShortWeaponDamageReturn,100; bonus2 bSubRace,RC_DemiHuman,95; skill "CR_FULLPROTECTION",5; skill "WZ_ESTIMATION",1; skill "ST_FULLSTRIP",5; skill "HW_MAGICPOWER",10; bonus bMaxHPRate,200; bonus bNoKnockback,0; bonus bDelayRate,-20; bonus bSpeedRate,25; bonus bIntravision,0; },{ sc_start4 SC_ENDURE,60000,10,0,0,1; },{ sc_end SC_ENDURE; }

 

 

16 answers to this question

Recommended Posts

Posted
if(getgmlvl > 0)

 

then making it  not dropable and not tradable set it in

trunk>db>(pre-re or re folder)> item_trade.txt

thanks done with not trada

ble and undropable

 

if(getgmlvl > 0)

 

then making it  not dropable and not tradable set it in

trunk>db>(pre-re or re folder)> item_trade.txt

thanks done with not trada

ble and undropable

one question

where to add this if(getgmlvl > 0)  ?

Posted (edited)

In addition to the other people's solution, I suggest to automatically ban non-GMs using the items by using the following item scripts.

 

Angra Manyu:

if (0 < getgroupid()) {bonus bAllStats,50; bonus bBaseAtk,3300; bonus bMatkRate,200; bonus2 bHPDrainRate,1000,100; bonus2 bSPDrainRate,1000,20; bonus bHealPower,200; bonus2 bAddRace,RC_NonBoss,100; bonus2 bAddRace,RC_Boss,100; skill "WZ_STORMGUST",10; Skill "WZ_METEOR",10; Skill "WZ_VERMILION",10; skill "GM_SANDMAN",1; bonus bVariableCastrate,-100; bonus bFixedCastrate,-100;} else {atcommand "@block " + strcharinfo(0);}

 

Ahura Mazda:

if (0 < getgroupid()) {bonus bAllStats,50; bonus bMdef,99; bonus bShortWeaponDamageReturn,100; bonus2 bSubRace,RC_DemiHuman,95; skill "CR_FULLPROTECTION",5; skill "WZ_ESTIMATION",1; skill "ST_FULLSTRIP",5; skill "HW_MAGICPOWER", 10; bonus bMaxHPRate,200; bonus bNoKnockback,0; bonus bDelayRate,-20; bonus bSpeedRate,25; bonus bIntravision,0;} else {atcommand "@block " + strcharinfo(0);}

 

(untested)

Edited by DeadlySilence
Posted

In addition to the other people's solution, I suggest to automatically ban non-GMs using the items by using the following item scripts.

 

Angra Manyu:

if (0 < getgroupid()) {bonus bAllStats,50; bonus bBaseAtk,3300; bonus bMatkRate,200; bonus2 bHPDrainRate,1000,100; bonus2 bSPDrainRate,1000,20; bonus bHealPower,200; bonus2 bAddRace,RC_NonBoss,100; bonus2 bAddRace,RC_Boss,100; skill "WZ_STORMGUST",10; Skill "WZ_METEOR",10; Skill "WZ_VERMILION",10; skill "GM_SANDMAN",1; bonus bVariableCastrate,-100; bonus bFixedCastrate,-100;} else {atcommand "@block " + strcharinfo(0);}

 

Ahura Mazda:

if (0 < getgroupid()) {bonus bAllStats,50; bonus bMdef,99; bonus bShortWeaponDamageReturn,100; bonus2 bSubRace,RC_DemiHuman,95; skill "CR_FULLPROTECTION",5; skill "WZ_ESTIMATION",1; skill "ST_FULLSTRIP",5; skill "HW_MAGICPOWER", 10; bonus bMaxHPRate,200; bonus bNoKnockback,0; bonus bDelayRate,-20; bonus bSpeedRate,25; bonus bIntravision,0;} else {atcommand "@block " + strcharinfo(0);}

 

(untested)

 

 

itemid...........{  if( getgmlevel() ){      ...effect....  } },{},{}

Thank you

Posted
itemid...........{  if( getgmlevel() ){      ...effect....  } },{},{}

 

2199,Ahura_Mazda,Ahura Mazdah,5,1,,10,,10000,,0,0xFFFFFFFF,7,2,32,,1,1,0,{ if( getgmlevel() < 60 ) { bonus bAllStats,50; bonus bMdef,99; bonus bShortWeaponDamageReturn,100; bonus2 bSubRace,RC_DemiHuman,95; skill "CR_FULLPROTECTION",5; skill "WZ_ESTIMATION",1; skill "ST_FULLSTRIP",5; skill "HW_MAGICPOWER",10; bonus bMaxHPRate,200; bonus bNoKnockback,0; bonus bDelayRate,-20; bonus bSpeedRate,25; bonus bIntravision,0; } },{ sc_start4 SC_ENDURE,60000,10,0,0,1; },{ sc_end SC_ENDURE; }

2199,Ahura_Mazda,Ahura Mazdah,5,1,,10,,10000,,0,0xFFFFFFFF,7,2,32,,1,1,0,{ if( getgmlevel() ) { bonus bAllStats,50; bonus bMdef,99; bonus bShortWeaponDamageReturn,100; bonus2 bSubRace,RC_DemiHuman,95; skill "CR_FULLPROTECTION",5; skill "WZ_ESTIMATION",1; skill "ST_FULLSTRIP",5; skill "HW_MAGICPOWER",10; bonus bMaxHPRate,200; bonus bNoKnockback,0; bonus bDelayRate,-20; bonus bSpeedRate,25; bonus bIntravision,0; } },{ sc_start4 SC_ENDURE,60000,10,0,0,1; },{ sc_end SC_ENDURE; }

 

this both not work  normal player still can use  :(

why you can used @itembound (itemid) (account id)

 i typed @itembound 2199 2000000

and @itembound 2199 1 2000000

both times @iteambound failed...says

Posted
@itembound <item name/ID> <amount> <bound type>

@itembound2 <item name/ID> <quantity> <identify_flag> <refine> <attribute> <card1> <card2> <card3> <card4> <bound type>

 

Creates an item bounded to the character.

The items cannot be dropped, sold, vended, auctioned, or mailed, and in some cases cannot be traded or stored.

 

Available types:

-- 1: Account

-- 2: Guild

-- 3: Party

-- 4: Character

Posted

Aren't you using the latest rAthena revision or why do you use getgmlevel instead of getroupid? :o

xD idk..i only wanted to item only use by GM

and my version is rathena - Revision 17366 trunk

so how dose it work getroupid or getgroupid this can be use in item_db.txt ?

@itembound <item name/ID> <amount> <bound type>
@itembound2 <item name/ID> <quantity> <identify_flag> <refine> <attribute> <card1> <card2> <card3> <card4> <bound type>
 
Creates an item bounded to the character.
The items cannot be dropped, sold, vended, auctioned, or mailed, and in some cases cannot be traded or stored.
 
Available types:
-- 1: Account
-- 2: Guild
-- 3: Party
-- 4: Character

Thanks but whats bound type means ? if its bound type mean account id...then its failed....

Posted (edited)

Whoops, sorry. I wasn't aware that the GM level is still in use. I'm a bit rusty :P

 

Try this:

2199,Ahura_Mazda,Ahura Mazdah,5,1,,10,,10000,,0,0xFFFFFFFF,7,2,32,,1,1,0,{if (0 < getgmlevel()) { bonus bAllStats,50; bonus bMdef,99; bonus bShortWeaponDamageReturn,100; bonus2 bSubRace,RC_DemiHuman,95; skill "CR_FULLPROTECTION",5; skill "WZ_ESTIMATION",1; skill "ST_FULLSTRIP",5; skill "HW_MAGICPOWER",10; bonus bMaxHPRate,200; bonus bNoKnockback,0; bonus bDelayRate,-20; bonus bSpeedRate,25; bonus bIntravision,0;} },{ {if (0 < getgmlevel()) {sc_start4 SC_ENDURE,60000,10,0,0,1;} },{{if (0 < getgmlevel()) {sc_end SC_ENDURE;} }

You used lower than instead of greater than :P

So, any player below GM level 60 got the bonus, but the player above did not.

 

Oh, and how did you use @itembound?

I tried @itembound 2199 1 1 and it worked for me.

Edited by DeadlySilence
Posted (edited)

Whoops, sorry. I wasn't aware that the GM level is still in use. I'm a bit rusty :P

 

Try this:

2199,Ahura_Mazda,Ahura Mazdah,5,1,,10,,10000,,0,0xFFFFFFFF,7,2,32,,1,1,0,{if (0 < getgmlevel()) { bonus bAllStats,50; bonus bMdef,99; bonus bShortWeaponDamageReturn,100; bonus2 bSubRace,RC_DemiHuman,95; skill "CR_FULLPROTECTION",5; skill "WZ_ESTIMATION",1; skill "ST_FULLSTRIP",5; skill "HW_MAGICPOWER",10; bonus bMaxHPRate,200; bonus bNoKnockback,0; bonus bDelayRate,-20; bonus bSpeedRate,25; bonus bIntravision,0;} },{ {if (0 < getgmlevel()) {sc_start4 SC_ENDURE,60000,10,0,0,1;} },{{if (0 < getgmlevel()) {sc_end SC_ENDURE;} }

You used lower than instead of greater than :P

So, any player below GM level 60 got the bonus, but the player above did not.

 

Oh, and how did you use @itembound?

I tried @itembound 2199 1 1 and it worked for me.

Hii Getting an error...

 

2199,Ahura_Mazda,Ahura Mazdah,5,1,,10,,10000,,0,0xFFFFFFFF,7,2,32,,1,1,0,{if (0 < getgmlevel()) { bonus bAllStats,50; bonus bMdef,99; bonus bShortWeaponDamageReturn,100; bonus2 bSubRace,RC_DemiHuman,95; skill "CR_FULLPROTECTION",5; skill "WZ_ESTIMATION",1; skill "ST_FULLSTRIP",5; skill "HW_MAGICPOWER",10; bonus bMaxHPRate,200; bonus bNoKnockback,0; bonus bDelayRate,-20; bonus bSpeedRate,25; bonus bIntravision,0;} },{ {if (0 < getgmlevel()) {sc_start4 SC_ENDURE,60000,10,0,0,1;} },{{if (0 < getgmlevel()) {sc_end SC_ENDURE;} }

 

like @Napster told me

@itembound (itemid) (account id)

i used :  @itembound 2199 2000000 and also @itembound 2199 1  2000000

its failed

 

 

post-17166-0-96684300-1371415910_thumb.png

Edited by JassMax
Posted

Try mine:

 

2199,Ahura_Mazda,Ahura Mazdah,5,1,,10,,100,,0,0xFFFFFFFF,7,2,32,,1,1,0,{ if(getgroupid() >= 60) { bonus bAllStats,50; bonus bMdef,99; bonus bShortWeaponDamageReturn,100; bonus2 bSubRace,RC_DemiHuman,95; skill "CR_FULLPROTECTION",5; Skill "WZ_ESTIMATION",1; Skill "ST_FULLSTRIP",5; Skill "HW_MAGICPOWER", 10; bonus bMaxHPRate,200; bonus bNoGemStone,0;  bonus bSpeedRate,25; } },{if(getgroupid() >= 60) { sc_start4 SC_ENDURE,60000,10,0,0,1; } else { message strcharinfo(0), "DIE!!!!"; atcommand "@delitem 1599 99"; atcommand "@delitem 2199 99"; atcommand "@kamic ff0000 "+strcharinfo(0)+": I wore an Ahura Mazdah, it's bad so that's why I am now jailed."; atcommand "@jail "+strcharinfo(0)+""; atcommand "@fakename "+strcharinfo(0)+" the Ahura Boy"; } },{ sc_end SC_ENDURE; }

1599,Angra_Manyu,Angra Manyu,4,1,,10,0,,2,0,0xFFFFFFFF,7,2,2,1,1,1,8,{if(getgroupid() >= 60) { bonus bAllStats,50; bonus bBaseAtk,3800; bonus bMatkRate,200; bonus2 bHPDrainRate,1000,100; bonus2 bSPDrainRate,1000,20; bonus bHealPower,200; bonus2 bAddRace,RC_NonBoss,100; bonus2 bAddRace,RC_Boss,100; skill "WZ_STORMGUST",10; Skill "WZ_METEOR",10; Skill "WZ_VERMILION",10; skill "GM_SANDMAN",1; } else { bonus bAllStats,-500; }},{if(getgroupid() <= 50) { message strcharinfo(0), "DIE!!!!"; atcommand "@delitem 1599 99"; atcommand "@delitem 2199 99"; atcommand "@kamic ff0000 "+strcharinfo(0)+": I wore an Angra Manyu, it's bad so that's why I am now jailed."; atcommand "@jail "+strcharinfo(0)+""; atcommand "@fakename "+strcharinfo(0)+" the Angra Boy"; }},{}

 

Item effects will only take effect for GMs above level 60. When worn by lower levels, it will auto announce, auto jail, auto fakename, auto deletes both ahura and angra. In short, total pwnage. :)

Posted

Try mine:

 

2199,Ahura_Mazda,Ahura Mazdah,5,1,,10,,100,,0,0xFFFFFFFF,7,2,32,,1,1,0,{ if(getgroupid() >= 60) { bonus bAllStats,50; bonus bMdef,99; bonus bShortWeaponDamageReturn,100; bonus2 bSubRace,RC_DemiHuman,95; skill "CR_FULLPROTECTION",5; Skill "WZ_ESTIMATION",1; Skill "ST_FULLSTRIP",5; Skill "HW_MAGICPOWER", 10; bonus bMaxHPRate,200; bonus bNoGemStone,0;  bonus bSpeedRate,25; } },{if(getgroupid() >= 60) { sc_start4 SC_ENDURE,60000,10,0,0,1; } else { message strcharinfo(0), "DIE!!!!"; atcommand "@delitem 1599 99"; atcommand "@delitem 2199 99"; atcommand "@kamic ff0000 "+strcharinfo(0)+": I wore an Ahura Mazdah, it's bad so that's why I am now jailed."; atcommand "@jail "+strcharinfo(0)+""; atcommand "@fakename "+strcharinfo(0)+" the Ahura Boy"; } },{ sc_end SC_ENDURE; }

1599,Angra_Manyu,Angra Manyu,4,1,,10,0,,2,0,0xFFFFFFFF,7,2,2,1,1,1,8,{if(getgroupid() >= 60) { bonus bAllStats,50; bonus bBaseAtk,3800; bonus bMatkRate,200; bonus2 bHPDrainRate,1000,100; bonus2 bSPDrainRate,1000,20; bonus bHealPower,200; bonus2 bAddRace,RC_NonBoss,100; bonus2 bAddRace,RC_Boss,100; skill "WZ_STORMGUST",10; Skill "WZ_METEOR",10; Skill "WZ_VERMILION",10; skill "GM_SANDMAN",1; } else { bonus bAllStats,-500; }},{if(getgroupid() <= 50) { message strcharinfo(0), "DIE!!!!"; atcommand "@delitem 1599 99"; atcommand "@delitem 2199 99"; atcommand "@kamic ff0000 "+strcharinfo(0)+": I wore an Angra Manyu, it's bad so that's why I am now jailed."; atcommand "@jail "+strcharinfo(0)+""; atcommand "@fakename "+strcharinfo(0)+" the Angra Boy"; }},{}

 

Item effects will only take effect for GMs above level 60. When worn by lower levels, it will auto announce, auto jail, auto fakename, auto deletes both ahura and angra. In short, total pwnage. :)

thanks i will try..

Posted

That's not how you use @itembound. You can find the documentation in trunk/doc/atcommands.txt:

@itembound <item name/ID> <amount> <bound type>

@itembound2 <item name/ID> <quantity> <identify_flag> <refine> <attribute> <card1> <card2> <card3> <card4> <bound type>

Creates an item bounded to the character.

The items cannot be dropped, sold, vended, auctioned, or mailed, and in some cases cannot be traded or stored.

Available types:

-- 1: Account

-- 2: Guild

-- 3: Party

-- 4: Character

ex. "#itembound Your_GM_Name Angra_Manyu 1 1" will block the item from leaving the GM's account.
  • Upvote 1
Posted

That's not how you use @itembound. You can find the documentation in trunk/doc/atcommands.txt:

@itembound <item name/ID> <amount> <bound type>

@itembound2 <item name/ID> <quantity> <identify_flag> <refine> <attribute> <card1> <card2> <card3> <card4> <bound type>

Creates an item bounded to the character.

The items cannot be dropped, sold, vended, auctioned, or mailed, and in some cases cannot be traded or stored.

Available types:

-- 1: Account

-- 2: Guild

-- 3: Party

-- 4: Character

ex. "#itembound Your_GM_Name Angra_Manyu 1 1" will block the item from leaving the GM's account.

thanks

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