Jump to content
  • 0

Check Eq/items and One time Quest script templates


hyuna

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  144
  • Reputation:   4
  • Joined:  10/28/12
  • Last Seen:  

Hello...I now undertstand common scripts and I want to practice...I'm asking for templates(easiest/blank forms of scripts) for:

 

1. Checking EQ(equipped on) b4 NPC talks to you(NO EQ means "Sorry come back later")

2. Checking Item in ur inventory (gives reward if you have the item)

3. Checking ur inventory if overweight/full

4. One time quest only per character done(sorry me still starter)

 

I'm asking this so that I can practice or somehow make my own scripts from practicing blank ones. THXX

Edited by hyuna
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

  1. refer isequipped
    if (isequipped(4001)) mes "A poring card is useful, don't you think?";
  2. refer countitem
    if( countitem( 4001 ) ){ // Check for Poring Card
    	getitem 607,1;	// get 1 Yggdrasilberry
    	delitem 4001,1;	// delete 1 Poring Card
    }
  3. refer Variables
    if( Weight > ( MaxWeight / 2 ) ){
    	mes "You are overweight.."; // more than 50%
    }
  4. refer Variables#Account_Variables
    if( #gained_item ){ // check variable
    	mes "You already get the items.";
    }else{
    	#gained_item = 1; // assign variable
    	getitem 607,1;
    }
    

     

     

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  144
  • Reputation:   4
  • Joined:  10/28/12
  • Last Seen:  

@Emistry cool...THX for this so much!!! 

 

how about the num#3 where you arent overweight but you already consumed the maximum number of spaces in your inventory?? I experienced this from a server I played b4 and its bad because the NPC takes the requirements but no more quest reward coz full inventory??

Edited by hyuna
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

getinventorylist;
if( @inventorylist_count >= 100 ){
	mes "Your inventory reach 100 items already.";
}

 

refer getinventorylist

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  144
  • Reputation:   4
  • Joined:  10/28/12
  • Last Seen:  

THX for a fast reply...solved!!

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