Eclipse
January 05, 2009, 08:20:21 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Chat Help Rules Arcade Search Calendar Gallery Login Register  
 
 
 
Recent Topics +-
[$$] Paying Paypal - GFX artists [$$] by Devogen
Today at 08:19:14 PM

The New Eclipse Raid on Runscape by Kreator
Today at 08:17:42 PM

Sig please :) by Kreator
Today at 08:16:38 PM

Disparity Recruiting by The Tribal
Today at 08:16:25 PM

Lostica [Project Revamp] by The Tribal
Today at 08:13:21 PM

32 by 32 pd by ‪‫‬‭‮‪‫‬‭The Admiral
Today at 08:03:00 PM

Actual Map for the continents by Amperglyph
Today at 07:54:10 PM

Last one to post Wins by Hikaru
Today at 07:46:39 PM

Spike's Adminishness! by Marsh
Today at 07:36:56 PM

My Game by Sʎ|3><(_)z
Today at 07:36:22 PM

Members Online +-
10 Guests, 21 Users
grenegg1,
Kreator,
Devogen,
‪‫‬‭‮‪‫‬‭The Admiral,
l0lz!,
The Tribal,
thingyguy,
Airscar,
The Roujo,
The BanHammer! [Thor!],
ʇıunpp ʎqɹıʞ࣭,
Teh_General,
Doomteam1,
Ambard,
The Troy,
Peter,
Hikaru,
dg1423,
westin444,
Artorios,
Japez
Pages: [1]
  Print  
Author Topic: A 1-time use warp scroll OMG  (Read 1566 times)
0 Members and 1 Guest are viewing this topic.
Simius Cruentus
Developer
Advanced Eclipser
*
Offline Offline

Posts: 1,659



View Profile Email
« on: November 28, 2006, 08:25:18 PM »



put this in scripted items script
Code: [Select]
case 4
x = GETPLAYERX(INDEX)
y = GETPLAYERY(INDEX)
if GetAttribute(GetPlayerMap(Index), x, y) = 1 then
call playermsg(index, "The scroll fizzles up.", 1)
call TakeItem(Index, 29)
exit sub
else
call playerwarp(Index, 4, x, y)
call TakeItem(Index, 29)
call playermsg(index, "The scroll fizzles up as you drift into a different location.", 1)
exit sub
end if
add this to the bottom.

Code: [Select]
Sub TakeItem(index, item)
SLOT = 1
Do While SLOT < 24
If GetPlayerInvItemNum(index, SLOT) = item Then
Call SetPlayerInvItemNum(index, SLOT, 0)
Call SetPlayerInvItemValue(index, SLOT, 0)
Call SendInventoryUpdate(index, SLOT)
SLOT = 24
End If
SLOT = SLOT+1
Loop
End Sub
you can find the 'take item' script also in unknown raven's quest script
just change 29 to the item number you want just like the 4 in 'call playerwarp'
Godlord
Stephanus sum
Veteran
Teh Uberleet
*
Offline Offline

Posts: 4,109


View Profile WWW Email
« Reply #1 on: December 04, 2006, 07:48:05 AM »

:P That script is longer then mine... Just use my Teleport script and add the takeitem to it and maybe an animation thingy and you have a scroll which teleports to a location (Made by the creator)
Fax
Hoplitai General
Active Member
***
Offline Offline

Posts: 184

Hahaha what?


View Profile WWW Email
« Reply #2 on: January 12, 2007, 08:41:20 PM »

Work in TE?
Simius Cruentus
Developer
Advanced Eclipser
*
Offline Offline

Posts: 1,659



View Profile Email
« Reply #3 on: January 12, 2007, 10:41:50 PM »

Work in TE?
it should.
Fax
Hoplitai General
Active Member
***
Offline Offline

Posts: 184

Hahaha what?


View Profile WWW Email
« Reply #4 on: January 13, 2007, 10:57:18 AM »

I shall give it a try
Fax
Hoplitai General
Active Member
***
Offline Offline

Posts: 184

Hahaha what?


View Profile WWW Email
« Reply #5 on: January 13, 2007, 04:25:35 PM »

it works. though my item doesnt disapear though I can only use it once. so it remains but as garbage kind of. Thats fine. Cause then they have like something to throw away. Nice script thanks Monkey.

P.S. How was it possible you got beta to work  :P

when I tried to use beta nothing would show up. My players would loggon and the gui would be there text box and everything but the window that has all the tiles and players in it was compleatly white. couldnt see anything not my player not any tiles nothing.
Simius Cruentus
Developer
Advanced Eclipser
*
Offline Offline

Posts: 1,659



View Profile Email
« Reply #6 on: January 19, 2007, 08:40:04 PM »

I dont know either. LOL! but it works?
Fax
Hoplitai General
Active Member
***
Offline Offline

Posts: 184

Hahaha what?


View Profile WWW Email
« Reply #7 on: January 19, 2007, 09:22:36 PM »

yes but. the scroll doesnt disapear
Pages: [1]
  Print  
 
 

Powered by EzPortal
Powered by MySQL Powered by PHP Powered by SMF 2.0 Beta 4 | SMF © 2006–2008, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!
Page created in 0.297 seconds with 32 queries.