xmaniacx Posted April 23, 2012 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 110 Reputation: 1 Joined: 04/03/12 Last Seen: April 29, 2019 Share Posted April 23, 2012 hello can does anybody have a headgear viewer? purposely for quest im using a basic quest npc type. and i want to separate a different npc that could let you view the specific headgear Quote Link to comment Share on other sites More sharing options...
Lelouch vi Britannia Posted April 23, 2012 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 715 Reputation: 84 Joined: 01/05/12 Last Seen: April 10, 2023 Share Posted April 23, 2012 Try this //============================================================ //= Preview Item Script //===== By: ================================================== //= iHeart //===== Current Version: ===================================== //= 1.01 //===== Description: ========================================= //= A method to allow headgear sprites to be previewed without //= being 'stolen' //===== Changelog: =========================================== //= 1.01 //= -Modified so it dynamically gets npc name for the timer //= 1.00 //= -Initial Release //============================================================ prontera,155,156,5 script PreviewStuff 813,{ //save current look for later set @bottomview, getlook(3); set @topview, getlook(4); set @midview, getlook(5); //doesn't actually execute until just before a 'close' statement, or when the char leaves the npc's control addtimer 1000, strnpcinfo(3)+"::On_Leave"; INTRO: mes "Welcome to the preview NPC"; mes "Please input an itemID you would like to preview"; input @itemid; //modifies char's look based on item set @equip, getiteminfo(@itemid, 5); set @view, getiteminfo(@itemid, 11); if(@equip != -1 && @view > 0) { //note: yes...i'm using atcommand here cause for some reason // 'setlook' has permanent effects...last time i checked at least if(@equip & 1) atcommand "@changelook 3 " + @view; if(@equip & 256) atcommand "@changelook 1 " + @view; if(@equip & 512) atcommand "@changelook 2 " + @view; } next; mes "Would to like to preview something else?"; if(select("Yes", "No") == 1) { goto INTRO; } //*preview wears off automatically here due to delayed timer*// close; On_Leave: atcommand "@changelook 1 " + @topview; atcommand "@changelook 2 " + @midview; atcommand "@changelook 3 " + @bottomview; close; } Quote Link to comment Share on other sites More sharing options...
xmaniacx Posted April 23, 2012 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 110 Reputation: 1 Joined: 04/03/12 Last Seen: April 29, 2019 Author Share Posted April 23, 2012 (edited) holy mother of god! this is the best previewer script ive found you sire are a mad GENIUS :] ,,, SALUTEE!!! Edited April 23, 2012 by xmaniacx Quote Link to comment Share on other sites More sharing options...
Lelouch vi Britannia Posted April 23, 2012 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 715 Reputation: 84 Joined: 01/05/12 Last Seen: April 10, 2023 Share Posted April 23, 2012 (edited) Nah dont thank me about this script because i didnt make it ,im just sharing it . But hey im glad you liked it Edited April 23, 2012 by Lelouch Quote Link to comment Share on other sites More sharing options...
Nokia Posted April 23, 2012 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 150 Reputation: 5 Joined: 12/28/11 Last Seen: May 10, 2013 Share Posted April 23, 2012 simple and good.. thanks for sharing. Quote Link to comment Share on other sites More sharing options...
Question
xmaniacx
hello can does anybody have a headgear viewer? purposely for quest im using a basic quest npc type. and i want to separate a different npc that could let you view the specific headgear
Link 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.