hyuna Posted April 10, 2013 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 144 Reputation: 4 Joined: 10/28/12 Last Seen: November 29, 2014 Share Posted April 10, 2013 (edited) 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 April 10, 2013 by hyuna Quote Link to comment Share on other sites More sharing options...
Emistry Posted April 10, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: April 20 Share Posted April 10, 2013 refer isequipped if (isequipped(4001)) mes "A poring card is useful, don't you think?"; refer countitem if( countitem( 4001 ) ){ // Check for Poring Card getitem 607,1; // get 1 Yggdrasilberry delitem 4001,1; // delete 1 Poring Card } refer Variables if( Weight > ( MaxWeight / 2 ) ){ mes "You are overweight.."; // more than 50% } refer Variables#Account_Variables if( #gained_item ){ // check variable mes "You already get the items."; }else{ #gained_item = 1; // assign variable getitem 607,1; } 1 Quote Link to comment Share on other sites More sharing options...
hyuna Posted April 10, 2013 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 144 Reputation: 4 Joined: 10/28/12 Last Seen: November 29, 2014 Author Share Posted April 10, 2013 (edited) @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 April 10, 2013 by hyuna Quote Link to comment Share on other sites More sharing options...
Emistry Posted April 10, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: April 20 Share Posted April 10, 2013 getinventorylist; if( @inventorylist_count >= 100 ){ mes "Your inventory reach 100 items already."; } refer getinventorylist Quote Link to comment Share on other sites More sharing options...
hyuna Posted April 10, 2013 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 144 Reputation: 4 Joined: 10/28/12 Last Seen: November 29, 2014 Author Share Posted April 10, 2013 THX for a fast reply...solved!! Quote Link to comment Share on other sites More sharing options...
Question
hyuna
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 hyunaLink to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.