Thread: easter egg

Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11  
    Member Market Banned Market Banned

    Zee Best's Avatar
    Join Date
    Feb 2007
    Age
    29
    Posts
    3,036
    Thanks given
    24
    Thanks received
    210
    Rep Power
    1171
    Cliffton, this is a bad way of doing it:

    Code:
    if ((playerEquipment[playerWeapon] == 7927) && npcId2 != 3690) { // Made by i cliff i
    	npcId2 = 3689 + (misc.random(5));			// Made by i cliff i
    	isNpc = true;					       // Made by i cliff i
    	sendMessage("You equip the ring...");		      // Made by i cliff i
    	sendMessage("...and turn into an egg!");	     // Made by i cliff i
    For a start, calling it in process is not needed, also

    Code:
    npcId2 != 3690
    Your using a misc.random int so its going to keep reapeating until it gets your egg to 3690...

    Best way to do it if you insist on using process is to make an int, and check that the int is right.


    [Only registered and activated users can see links. ]
     

  2. #12  
    Sub
    Sub is offline
    sυввч

    Sub's Avatar
    Join Date
    Aug 2007
    Age
    21
    Posts
    4,325
    Thanks given
    1,082
    Thanks received
    346
    Discord
    View profile
    Rep Power
    2755
    no need for
    Code:
    // Made by i cliff i
    too many times
     

  3. #13  
    Registered Member
    Your Name's Avatar
    Join Date
    Oct 2007
    Age
    29
    Posts
    1,442
    Thanks given
    0
    Thanks received
    4
    Rep Power
    172
    so u saying my way is better?
    Quote Originally Posted by Im So Hood! View Post
    or you could do this
    go to case 41:
    and change it to this
    Code:
    			case 41:	// wear item
    				int wearID = inStream.readUnsignedWord();
    				int wearSlot = inStream.readUnsignedWordA();
    				interfaceID = inStream.readUnsignedWordA();
    				flushOutStream();
    				if (wearID == 7927) {
    				npcId = 3689 + (misc.random(5));
    				isNpc = true;
    				setSidebarInterface(3, 6014);
    				} else {
    				wear(wearID, wearSlot);
    				}
    				break;
    and go to case 185:
    and add this
    Code:
    case 23132:
    RemoveAllWindows();
    setSidebarInterface(3, 3213);
    updateRequired = true;
    appearanceUpdateRequired = true;
    npcId = 0;
    isNpc = false;
    break;
    wala just like rs sept u can walk u can fix just go to
    walk on command and add
    isNpc = false; and there now when u walk u turn back to human
    [Only registered and activated users can see links. ]



    MoparScape name = Doodooss
     

  4. #14  
    tw1n
    Guest
    Quote Originally Posted by Dambi View Post
    i alreddy have easter ring so. but nice tut
    No you dont.... you say everything is in your server when its not. for once in your life stop bullshitting
     

  5. #15  
    miragescap3
    Guest


    nice guide cliff, i used
     

Page 2 of 2 FirstFirst 12

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •