Jump to content
  • 0

@fakename when multiple item equip


Lil Troll

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Can anyone help me do this stuff, i dont have any preference for me to disect how to do it properly. Here is the script.

function    script    Titles {

setarray .@item$[0],6010,27307,27311;

if(strcharinfo(0) == getequipid(4) == 6010 && getequipid(9) == 27307 &&getequipid(1) == 27311){
    explode(.@item$,getitemname(getarg(0,0))," ");
    if(.@item$[0]!="") atcommand "@fakename [Novice Miner]"+strcharinfo(0);
    else atcommand "@fakename";
    end;
}

 

Also in Item DB what should put?

6010,MiningPickaxe,Mining Pickaxe,3,0,,10,,,,,,,,,,,,,{},{callfunc("Titles",6010);},{atcommand @fakename;}
27307,MiningArmor,Mining Armor,3,0,,10,,,,,,,,,,,,,{},{callfunc("Titles",27307);},{atcommand @fakename;}
27311,MiningHelm,Mining Helm,3,0,,10,,,,,,,,,,,,,{},{callfunc("Titles",27311);},{atcommand @fakename;}

 

And also anyone knows how to edit this?

atcommand.c

clif_displaymessage(sd->fd, msg_txt(1309)); // Fakename disabled

I want to change the Fakename Disabled to Title has been removed.

Edited by Lil Troll
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

It's unclear exactly what you want.

 

To disable the fakename message just comment that line out.

clif_displaymessage(sd->fd, "Title has been removed"); // Fakename disabled

Have you tried something like that?

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

also there is a mistake in

if(strcharinfo(0) == getequipid(4) == 6010

if <player name> == <something equiped>  ???

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

@sir skorm: I havent tested it yet, going to modify the src now.

 

@sir capauche: should i try this:

if(getequipid(4) == 6010
Edited by Lil Troll
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

yeah

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Sir Capauche can you help me on this topic please. :D

 

http://rathena.org/board/topic/85688-help-at-command-script/
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...