[1] | 1 | //by Lupus. |
---|
| 2 | // *** Usage of Global_Functions.txt (you can translate Global_Functions.txt function messages) |
---|
| 3 | // Here's a polite wolf NPC ^_- Luppy |
---|
| 4 | // learn how to make your NPC more alive. |
---|
| 5 | // PS don't use it as a normal NPC in your server. It's exploitable 8) |
---|
| 6 | |
---|
| 7 | prontera,167,177,5 script Luppy 1107,{ |
---|
| 8 | mes "[Luppy]"; |
---|
| 9 | |
---|
| 10 | //say random greeting from Global_Functions.txt |
---|
| 11 | mes callfunc("F_Hi"); |
---|
| 12 | |
---|
| 13 | //say a compliment according to player's gender |
---|
| 14 | //1st string is for FEMALE, 2nd for MALE |
---|
| 15 | mes callfunc("F_Sex","What a beautiful lady!","What a handsome man!"); |
---|
| 16 | |
---|
| 17 | //add some random greeting and goodbye into the menu |
---|
| 18 | menu callfunc("F_Hi"),-, callfunc("F_Bye"),M_BYE; |
---|
| 19 | |
---|
| 20 | mes "[Luppy]"; |
---|
| 21 | //give a random prize from set list of items |
---|
| 22 | if(@gotstuff){ |
---|
| 23 | //again, say stuff according to player's gender |
---|
| 24 | mes "I like "+callfunc("F_Sex","smiling ladies!","bloody pirates!"); |
---|
| 25 | |
---|
| 26 | //show one of 3 emotion from the list (we added ,1 to show emotion over PLAYER's head) |
---|
| 27 | emotion callfunc("F_RandMes",3,e_scissors,e_kis,e_pat),1; |
---|
| 28 | close; |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | //we set a temp var to give present just once. Player can get more by RE-entering the server |
---|
| 32 | set @gotstuff,1; |
---|
| 33 | |
---|
| 34 | //get item Id from the list of presents: Apple, Mastela Fruit, Yggdrasil Seed or Orange Juice |
---|
| 35 | set @itemIDfromList, callfunc("F_RandMes",4,512,522,608,620); |
---|
| 36 | |
---|
| 37 | //again, say stuff according to player's gender |
---|
| 38 | mes "Hey, "+callfunc("F_Sex","sister!","brother!")+" I have "+getitemname(@itemIDfromList)+" for you!"; |
---|
| 39 | |
---|
| 40 | //get the item from the list |
---|
| 41 | getitem @itemIDfromList,1; |
---|
| 42 | close; |
---|
| 43 | |
---|
| 44 | M_BYE: |
---|
| 45 | mes "[Luppy]"; |
---|
| 46 | //add some random goodbye from Global_Functions.txt |
---|
| 47 | mes callfunc("F_Bye"); |
---|
| 48 | close; |
---|
| 49 | } |
---|
| 50 | |
---|
| 51 | //Please, be more creative. Or else this li'l wolfy would eat you up! |
---|