Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   A little help... (https://forums.graalonline.com/forums/showthread.php?t=11144)

ArmadeusWarlock 09-04-2001 07:53 AM

A little help...
 
Ok, this sounds really simple to do, but Im busy doing other things and I just cant seem to figure it out.

// NPC made by Reese (Events Team)
if (playerenters) {
}
if (playertouchsme) {
toweapons Wizard Spell Trade;
setstring spell0,0;
setstring spell1,0;
setstring spell2,0;
setstring spell3,0;
setstring spell4,0;
setstring spell5,0;
setstring spell6,0;
setstring spell7,0;
setstring spell8,0;
setstring spell9,0;
setstring spell10,0;
setstring spell11,0;
}
if(weaponfired){
set usingtrade;
timeout=0.01;
this.tx=playerx;
this.ty=playery;
}
if(usingtrade){
showimg 1,wepstuff.gif,playerx+1,playery-3; //Top Arrow
changeimgpart 1,0,0,16,15;
showimg 2,wepstuff.gif,playerx+1,playery-3; //Bottom Arrow
changeimgpart 2,17,0,16,15;
}
if(timeout){
playerx=this.tx;
playery=this.ty;
}
if(timeout&&keydown(a)){
unset usingtrade;
timeout=0;
}

If you need the image for it, I can post it. My problem is with freezing, I tried about 12938471329847219471293749 different things to freeze and it doesnt work. Freezeplayer wont work for some odd reason from how I used it. Please help me solve this, Im busy with other things and I dont have much time

:(

ArmadeusWarlock 09-04-2001 07:55 AM

Also Im not done with this script, Im making it for my PW to drop items like it does on New Main, thats what the strings are for.

RICEJERRRY4 09-04-2001 08:52 AM

nice
 
Yo nice script.
Ask KJL for help hes good.

Merlin 09-04-2001 09:43 AM

"Don't use flags." -Kai

Enigma_GP6 09-05-2001 05:03 AM

ya know, I give up n helping Merlin, he is hopeless.

-Rebel95


All times are GMT +2. The time now is 09:30 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.