Ragnarok Crew Discussion
Ragnarok Crew Discussion
Ragnarok Crew Discussion
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Ragnarok Crew Discussion

Discuss topics about ways in making/running Ragnarok server and get the required database server/client and also custom made ( Item/Map/Web Template/Monster/and more else).
 
HomeHome  Latest imagesLatest images  RegisterRegister  Log inLog in  

 

 All In One Headgear Function

Go down 
AuthorMessage
AirVine-X
Poring
Poring
AirVine-X


Posts : 62
Join date : 25/02/2013

All In One Headgear Function  Empty
PostSubject: All In One Headgear Function    All In One Headgear Function  I_icon_minitimeThu Jun 20, 2013 4:07 pm

ciri-ciri:
Ini adalah satu fungsi mudah digunakan pada barangan OnEquip skrip, yang membolehkan pemain memilih tudung bewarna pandangan ID, i mempunyai idea apabila membantu permintaan dengan Shanky
Todo:
Cadangan?
Mengoptimumkan?

Code:
   //example
   //2201,Sunglasses,Sunglasses,5,5000,,100,,0,,0,0xFFFFFFFF,7,2,512,,0,0,12,{ your bonuses here },{ set @gear,3; callfunc ChooseHeadgear; },{ setlook 3,0; }
   //be sure put the set @gear and the callfunc ChooseHeadgear; in the OnEquip
   //as well as the setlook in the On UnEquip
   //@gear and setlook determins which gear is changed
   //3 Lower
   //4 Upper
   //5 Mid


function script ChooseHeadgear {

   set .@Max,873;      //This is the max used headgear veiw ID
   mes "~Headgear~";
   mes "Why dont I change our look?";
   while(.@i < 10){
      mes "Veiw ID: "+.@look+"";
      switch(select("Next:Back:Choose One:This One")){
         case 1:
         set .@look,.@look+1;;
         if(.@look > .@Max) set .@look,0;
         setlook @gear,.@look;
         break;
         case 2:
         set .@look,.@look-1;
         if(.@look < 0)set .@look,.@Max;
         setlook @gear,.@look;
         break;
         case 3:
         input .@look;
         if(.@look > .@Max) set .@look,0;
         if(.@look < 0)set .@look,.@Max;
         setlook @gear,.@look;
         break;
         case 4: set .@i, 50; mes "We look wonderful."; close; break;
      }
   }
}
Back to top Go down
https://ro-crew.forumms.net
 
All In One Headgear Function
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Ragnarok Crew Discussion :: General Support and Release :: Scripting :: Script Releases-
Jump to: